Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER General Discussion Forum

Reply
 
Thread Tools Display Modes
Old 09-19-2019, 10:58 PM   #1
dangguidan
Human being with feelings
 
Join Date: Jan 2019
Location: China
Posts: 662
Default Can't MIDI's overall key signature be set?

Can't MIDI's overall key signature be set?
Although the five-line spectrum window can input the key signature, after MIDI is exported, the input key signature disappears.
dangguidan is online now   Reply With Quote
Old 09-22-2019, 09:19 AM   #2
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

what is the 5 line spectrum window? no idea what you are talking about
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 09-22-2019, 09:52 AM   #3
Icchan
Human being with feelings
 
Icchan's Avatar
 
Join Date: Dec 2011
Location: Finland
Posts: 792
Default

MIDI has no key signature. (read the specification, since you'd do yourself a favor understanding what MIDI really is about, too few musicians have any proper grasp on the basics of a protocol they use daily... which is weird)

the "5-line spectrum window" you're referring to the "Notation editor" or "Notation view" of underlying MIDI-data.

It's nothing more than an abstraction layer and when you export the MIDI, you're stripping away any functionality that's not supported by MIDI, and one of them being a concept of "Key signature".

MIDI is open ended, so it can have data in it to signify Key signature, but it would need the software/hardware that interprets the MIDI to be set up to use that particular piece of data as a "key center".
Icchan is offline   Reply With Quote
Old 09-22-2019, 10:35 AM   #4
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

oh I see... it means the Notation View only... 5 line notation staff...

OK I see what the OP is asking now... so what he could do, is name his midi files to include the key sig and then
set that in reaper

and yes, neither xml nor .mid hold the key sig. as far as I can see
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva

Last edited by hopi; 09-22-2019 at 10:44 AM.
hopi is offline   Reply With Quote
Old 09-22-2019, 11:56 AM   #5
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 15,823
Default

There is actually a MIDI specification for key signature. If you set the key signature using the REAPER notation editor and then export a .mid file, the key signature should be embedded in the .mid file.
schwa is offline   Reply With Quote
Old 09-22-2019, 03:31 PM   #6
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

oh thanks schwa.... I did try that but was confused by the result but now I know better...
does it work for xml the same way?
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 09-22-2019, 06:43 PM   #7
dangguidan
Human being with feelings
 
Join Date: Jan 2019
Location: China
Posts: 662
Default

Quote:
Originally Posted by schwa View Post
There is actually a MIDI specification for key signature. If you set the key signature using the REAPER notation editor and then export a .mid file, the key signature should be embedded in the .mid file.
The problem now is that key signature has been inserted into the notation editor, but after MIDI exports, all this information has been lost.
dangguidan is online now   Reply With Quote
Old 09-23-2019, 03:50 AM   #8
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 15,823
Default

The key signature should be embedded in the exported .mid file. Would you care to attach one of the exported MIDI files?

schwa is offline   Reply With Quote
Old 09-23-2019, 06:23 AM   #9
dangguidan
Human being with feelings
 
Join Date: Jan 2019
Location: China
Posts: 662
Default

Midi and screenshots were uploaded, and key signature was still not seen in other sequencers.

Last edited by dangguidan; 12-29-2022 at 08:12 AM.
dangguidan is online now   Reply With Quote
Old 09-23-2019, 06:44 AM   #10
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 15,823
Default

Thanks for posting the file. Could you post the .RPP as well?
schwa is offline   Reply With Quote
Old 09-23-2019, 08:06 AM   #11
dangguidan
Human being with feelings
 
Join Date: Jan 2019
Location: China
Posts: 662
Default

Sorry, the MIDI was not saved before.
I redesigned an RPP and inserted four key signatures, set to A B C D.

Last edited by dangguidan; 12-29-2022 at 08:12 AM.
dangguidan is online now   Reply With Quote
Old 09-23-2019, 08:14 AM   #12
dangguidan
Human being with feelings
 
Join Date: Jan 2019
Location: China
Posts: 662
Default

I also uploaded a correct MIDI file, key signatures set to A B C D.

Last edited by dangguidan; 12-29-2022 at 08:12 AM.
dangguidan is online now   Reply With Quote
Old 09-23-2019, 09:04 AM   #13
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 15,823
Default

This is a bit obscure, but I think the problem is this: if you have MIDI editor View > Notation view options > Key signatures > Key signature changes affect all tracks enabled, then key signature changes are stored with the project. If that preference is disabled, then key signature changes are stored with the track. If key signature changes are stored with the project, they will only be exported when you choose File > Export project MIDI from the main REAPER menu. If key signature changes are stored with the track, they will only be exported when you choose File > Export to new MIDI file from the MIDI editor menu.

I think we should probably change this on our side so the key signatures are exported in all combinations of preferences and export methods.
schwa is offline   Reply With Quote
Old 09-23-2019, 11:40 AM   #14
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

yes plz schwa.... it would seem to make much more sense when exporting the MIDI file, that it included the key signatures used regardless of other reaper settings.... isn't true that then we would just not need other settings?
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 09-24-2019, 10:26 AM   #15
Icchan
Human being with feelings
 
Icchan's Avatar
 
Join Date: Dec 2011
Location: Finland
Posts: 792
Default

@Schwa, dang it, thanks for correcting me. I had completely glossed over meta data fields in the .mid file itself... that's true. the key signature has a support as system exclusive message as well... and I forgot that completely.

Thank you and sorry about me spreading misinformation. I really should have dealt more with MIDI-files instead of the raw protocol itself (I'm mostly dealing with MIDI in embedded electronics systems)

Thanks and sorry about that ;D
Icchan is offline   Reply With Quote
Old 01-03-2021, 06:58 AM   #16
dangguidan
Human being with feelings
 
Join Date: Jan 2019
Location: China
Posts: 662
Default

Quote:
Originally Posted by schwa View Post
This is a bit obscure, but I think the problem is this: if you have MIDI editor View > Notation view options > Key signatures > Key signature changes affect all tracks enabled, then key signature changes are stored with the project. If that preference is disabled, then key signature changes are stored with the track. If key signature changes are stored with the project, they will only be exported when you choose File > Export project MIDI from the main REAPER menu. If key signature changes are stored with the track, they will only be exported when you choose File > Export to new MIDI file from the MIDI editor menu.

I think we should probably change this on our side so the key signatures are exported in all combinations of preferences and export methods.
If key signature changes affect all tracks is disabled, the input key signature can be seen in the event list, the exported MIDI format 0 can be seen, but MIDI format 1 can't.
When key signature changes affect all tracks enabled, the input key signature cannot be seen in the event list, and the exported MIDI does not even have MIDI format 0.

Last edited by dangguidan; 01-03-2021 at 08:06 AM.
dangguidan is online now   Reply With Quote
Old 01-07-2021, 03:00 AM   #17
dangguidan
Human being with feelings
 
Join Date: Jan 2019
Location: China
Posts: 662
Default

I made a mistake. Sorry!
If you set key signature changes affect all tracks is disabled, it can be exported correctly.
But it can't be read in cakewalk 9. This is the problem of cakewalk.
dangguidan is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:42 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.