SynthMaker

note scale tool

Archive · 2011 9 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

tracert ·

i have do this simple note scale tool, but it is only for one octave, some idea for next 4 octave ? (i dont wont to repeat same code 4 times!) thanks....

philter5 ·

tracert wrote: (i dont wont to repeat same code 4 times!) thanks....

why not?

lesobrod ·

Oh I feel the same many times, man! Are you programmer? 😀 I remember from ALGOL and PASCAL - "Always make arrays and loops; don't use x,y,z,w, but arr[1..4]" and etc. Well the rules are for breaking and for to trial by reality sense. Copy-Paste 4 or even 8 modules IMO better than to make huge and awful complicated logical design ))

oddson ·

Modulus divide the note number by 12 and the result will give you the scale degree {edit}should read: 'pitch distance from C'{/edit} separate from the octave.

I haven't studied the image carefully to see what you're doing so I may be off base.

oddson ·

I took another look...

You're filtering non-diatonic notes out of a MIDI stream. Correct?

I think there might be one of these somewhere on the site... if not I'll have a look after dinner (2 hours) and post something.

oddson ·

Very similar issue in a chord gererator problem from way back (so far back the included version of my GUI Keyboard doesn't work).

So it was pretty simple to make this:

tracert ·

hi oddson, brlliant your schematic!, but if i need to correct note out of the scale ?

oddson ·

tracert wrote: ... if i need to correct note out of the scale ?

You need to provide a table to correct non-diatonic offsets 1,3,6,8,10 and tell it which direction to correct (and even how far if you want although that would be a bit weird).

I've done it with -1 and +1 values for these indexes in the lookup table.

tracert ·

Oddson, I dont know the array, i have do this, it seem to work, what you think about ? Thanks for your attention.

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.