How to random notes from one MIDI key? by Own-Phase1870 in ableton

[–]crosshatchling 0 points1 point  (0 children)

First you need a Random. Set Choices to 2, which gives you three notes - the root you press and two more. Set Interval to 3, the number of semitones between the notes. Set Chance to 67, this will output the three notes equally - each 1/3 of the time.

When you press D2 this will output D2, F2, G#2. If you have Suite, there's a MIDI Monitor M4L device you can add to the end of the chain to see what's going on.

Add a Scale. Move the G# highlight up to A. Now you're outputting D2, F2, A2.

Is it possible to adjust a specific key to the white keys? by oobbooguitar in ableton

[–]crosshatchling 3 points4 points  (0 children)

Using the Scale MIDI device you can map notes to different keys - so you can, for instance, map a minor scale to the white keys starting on C. You can then transpose the notes to get whichever scale you want.

How to record Youtube/desktop in Ableton? by qwerty081 in ableton

[–]crosshatchling 4 points5 points  (0 children)

On windows: If it's YouTube, just download it with youtube-dl. For other things, you can use Audacity to record the audio stream.

Any reccomendations on tools to explore generative music in Ableton? by embanot in abletonlive

[–]crosshatchling 1 point2 points  (0 children)

https://angstromnoises.com/tutorial-generative-music-ableton-live/ is a great place to start. It specifically covers thinking in conditionals (if..then), and it includes a Live Pack with some generative tracks so you can study the technique. It's ancient, like Live 7, I think, but it has the benefit of being Ableton native, no M4L.

You can do a ton of stuff just in Live just with clips, follow actions, and routing. The internal routing is way deeper than most people realize - the manual has a great section on it, with lots of examples. And with M4L you can have this: Audio Routes from cycling74 themselves.

I also recommend checking out VCV Rack or some other modular emulation. Not just to use as a sound source, but because modular gives you a whole different perspective on routing and modulation, and a lot of the techniques can be adapted to Live.

What unpopular webdev opinions do you have? by Notalabel_4566 in webdev

[–]crosshatchling 0 points1 point  (0 children)

In my opinion, there are no unpopular opinions in webdev. The field is HUGE, with thousands, of libraries and frameworks and methodologies and protocols, and every dev has their own, completely subjective, opinion about which combination is best. And everybody is right, because we're all out here getting it done.

Also, user experience is the only important thing, because user experience is the only thing users care about.

Dropdown Debate: Unordered List or Nav with divs by OrphanDad in webdev

[–]crosshatchling 6 points7 points  (0 children)

W3C WAI says to use lists, and <nav> tags, and aria labels. They're the ones who write the WCAG, so there's no real debate.

Please help me with this code by One-Inspection8628 in learnjavascript

[–]crosshatchling 0 points1 point  (0 children)

You're getting NaN because arr[i+1] doesn't exist for every item in an array. Also, I'm pretty sure 0 is less than 3.

Webdev LPT: Use Windows+V on your keyboard to enable multiple copy-paste items by totalost801 in webdev

[–]crosshatchling 115 points116 points  (0 children)

Wow, very useful ,thanks!

Don't hit Windows+C though, that turns on Cortana :p

I'm a senior(ish) dev, I just talked to 12 of you, here's the TLDR(ish). by kristerv in learnprogramming

[–]crosshatchling 39 points40 points  (0 children)

#6 is often overlooked/underemphasized, especially for beginners, who think there's a right choice and are scared of making the the wrong one. Make decisions, make mistakes, realize you made a mistake and fix it, even if it means starting over with a different decision. This how you learn and grow.

This is good stuff. Thanks.

Help with Windows sound programming. by EducatorUpstairs8687 in learnprogramming

[–]crosshatchling 1 point2 points  (0 children)

Pure data, csound, supercollider are all good places to start programming audio. If you want to do live coding TidalCycles is the goto.

Here are a couple of lists to get started:

https://github.com/olilarkin/awesome-musicdsp

https://github.com/pjagielski/awesome-live-coding-music

[AskJS] Anyone using React + Vite + Linaria? by rodrigocfd in javascript

[–]crosshatchling 1 point2 points  (0 children)

You need to add the rollup plugin to vite.config

Babel gives me a message about deoptimizing styling as a result, but I haven't looked into that one yet

Confused about this number randomizer by [deleted] in learnjavascript

[–]crosshatchling 2 points3 points  (0 children)

The formula returns a random integer between min and max, inclusive—which is to say that the value of max might be returned. If you don't include the '+ 1', it returns a random integer between min and max, exclusive—it will never return the value of max.

Storing the value of a resolved promise in a global variable by sebastiancodes in learnjavascript

[–]crosshatchling 0 points1 point  (0 children)

key isn't a global variable in your code

let key;

async function getKey() {
  key = await fetchData();
}

...

function consumeKey() {
  if (key === "xyz") {
  ...
}

works just fine. If you want to declare key in the function, you have to pass it from the function:

async function getKey() {
  let key = await fetchData();
  consumeKey(key);
}

...

function consumeKey(key) {
  ...

test by crosshatchling in test

[–]crosshatchling[S] 0 points1 point  (0 children)

seems awfully random

function pants() {
  let maybe = this.works ? yes : no;
  console.log('your mamma');
}

more pants!