Old 10-20-2019, 03:17 AM   #1
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,643
Default JSFX Get Inputted MIDI Notes ?? [SOLVED}

I need to get the inputted midi notes from a midi keyboard.
The most notes played at the same time will be 7 over 1 and the following octave, example:
if notenums == "0,5,7,10,13,18,20" then chordtype = "7susb9#11b13"
the notes need to set 7 parameters that I can read from Lua with
reaper.TrackFX_GetParam
__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
STASH Downloads https://stash.reaper.fm/u/ReaTrak

Last edited by MusoBob; 10-23-2019 at 05:23 PM.
MusoBob is offline   Reply With Quote
Old 10-20-2019, 03:42 AM   #2
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,688
Default

If I understand correctly what you are up to:
Supposedly TrackFX_GetParam will read the current value of the slider in the JSFX.
-Michael
mschnell is offline   Reply With Quote
Old 10-20-2019, 04:37 AM   #3
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,643
Default

JS-Shows current playing Chord (1.01) was working ok reading the chords from the midi track but if I give it an external input it's not working.
Chord info.txt]

The other ones are receiving the midi input but not JS-Shows current playing Chord.

So if I can get the 7 midi notes parameters from the JS plugin back to Lua I can work out the chord being played.
Either that or someone can look at the JS-Shows current playing Chord and make it take external midi input like the other 2 plugins.

__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
STASH Downloads https://stash.reaper.fm/u/ReaTrak
MusoBob is offline   Reply With Quote
Old 10-23-2019, 05:23 PM   #4
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,643
Default

Solved thanks to geraintluff

https://forum.cockos.com/showthread.php?t=226287#2
Quote:
Originally Posted by geraintluff View Post
The fact that it's working from MIDI items but not live input is a little weird. I looked through the code, and it makes a couple of assumptions that might trip up in edge-cases, but it's only a theory.

I can't test on your setup, so this might take a bit of trial-and-error, but could you try the attached version and see if it behaves any differently?


File Type: txt Chord Info modified.txt



Geraint
__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
STASH Downloads https://stash.reaper.fm/u/ReaTrak
MusoBob is offline   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 12:34 AM.


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