Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notes in clip are always 1 octave lower than specified #153

Open
steebba opened this issue Jun 15, 2021 · 4 comments
Open

Notes in clip are always 1 octave lower than specified #153

steebba opened this issue Jun 15, 2021 · 4 comments

Comments

@steebba
Copy link

steebba commented Jun 15, 2021

I'm currently using version 3.6.1.

When I download a midi clip from firefox on Mac OS the resulting clip is always 1 octave lower than what is listed in the notes. So 'c1' comes out as 'c0'

Code example:

				  var clip = scribble.clip({
				      notes: 'c1',
				      pattern: 'x---'
				  });
				  scribble.midi(clip, title).click();

The resulting midi file has c0 instead of c1. I viewed the Midi clip in a few different DAWS to make sure and they all showed c0 instead of c1. Is there something I'm missing or not understanding?

Thanks!

@walmik
Copy link
Collaborator

walmik commented Jun 15, 2021

Hello @steebba this is because of the way DAWs treat the middle C. From midi standards 60 is middle C and software and hardware manufacturers are free to set that to whatever they want. Most DAWs set 60 as C3 but Scribbletune treats C4 as middle C because it's dependency jsmidgen sets it to C4. Maybe it's time change this! Let me know what you think.

In the mean time you can take a look at this article I had published about middle C which explains this issue https://medium.com/@_walmik/middle-c-5c948bd27b6e

@steebba
Copy link
Author

steebba commented Jun 16, 2021

Ah okay! Sorry I probably asked a super common question. I should've searched for Middle C in past issues.

Yeah I've just been using a +12 Ableton Pitch Shifter in front of any instrument using ScribbleTune - would be nice to have an option in Scribbletune to shift Middle C just so that any annotating I do using ScribbleTune notation matches the midi files in Ableton too.

Anyway, thanks for sharing the article!

@walmik
Copy link
Collaborator

walmik commented Jun 16, 2021

It's not very common and I'm glad you asked coz I m now wondering if we should change this behavior considering people will want to use midi files in DAWs after all.

By the way a few years ago I had the exact same question to the author of jsmidgen (Scribbletune's primary dependency) dingram/jsmidgen#20

@steebba
Copy link
Author

steebba commented Jun 17, 2021

Oh interesting to see the initial question and jsmidgen reasoning. I think it makes sense technically but yeah I think you're point is also right in that at the end of the day most people are probably using their midi files in a DAW.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants