Still problems with Message.sendToMidiOut();
-
@ps hmm..what extra definitions do you have in the Hise preferences?
I think I had the
ENABLE_ALL_PEAK_METERS=1
before, but I had to remove that to get it to work
-
@ulrik had nothing else in there :/
As I believe Midi Out is a pretty important topic - especially for commercial developers (A user / client will not understand why it's not possible as it is a pretty basic thing with most plugins eg. Kontakt) we have to have a "typical" case working in a DAW so we can say HISE can do MIDI OUT.
By typical case I mean a virtual instrument that is modifying the input midi and you are able to fetch that generated midi on another Midi track. This is at least what I got hundreds of request for.
So the most simple scenario would be a sine wave generator and for example an arpeggiator or any other artificial note generation - and what we wanna be able to record as midi is the notes that we hear not that we input.
I'm clearly failing to make it work and got left with maximum confusion as it works in the JUCE Plugin Host but not in the DAW.
@d-healey @Christoph-Hart @ulrik any pointers where the missing link might be? It seems to work in the JUCE plugin host but not in the DAW.
In the DAW I always get the input notes passed. (And I'm sure I'm routing it properly) -
@ps Agree, it's important, I wish it was easy and a no brainer to code.
-
@jonhallur I still can't get it to work. Could you try with this snippet and if you get it to work let me know what you changed? Also are you exporting as a MIDI FX?
HiseSnippet 1258.3oc6Xs0aaaCElxNrn1Y25VwvvdRnXO3fkEXklkKqXn4hsyBZbiQra5dYnfQh1lHxjZTTN0nnureY8w8vdX+T5+frCojijRU7xLVKVGZdHHma77QdtpzQJboggBIxpRuIATj0Gg6NgqFt2PBiiNnAx513NRZHUg1cR.ILj5grrJuuVpUkEPled8C2k3S3tzTVHzIBlK8P1HlJkamseDy2uEwi1iMJi1qs8AtB9dBeQDfjx35n.h6YjAzGSzpUBirtUSOlRH6pHJZHxZgcEdS5NTbNOV+SXgrS8oZBGTW3fhY2R36oQrlKZugLeuNSuwgHjEtS58ub78+t31LO1k7SeG9Li.6TKx9dXUJO7JmCdNYgW8Lvq.HYkARKDCo6f65JYApTIZ7rH9.thJ6Sfm8rPIVWj0qv6I.E3pUFQNi1RBDWZPs0qWeYa3WK8f9QbWESvsE7GKTzi30Vp5KpVo5KqZeUQ86WnLsajBeeprPw5HsbV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z1NHSmRvNb8UpiFAMlelqq9I96flaEaypygM2eNrYs4vlueNrY84vlMlCa1bl1nmItSD7s3wkb.iNMMiOrrZxIP1qISG8W.T2wiNB
-
@ps Here's the project, try with that
TEST PROJECT -
@d-healey Do you have "JucePlugin_ProducesMidiOutput=1" as an extra definition in the preferences?
And I see you don't use "Message.sendToMidiOut()"?
-
JucePlugin_ProducesMidiOutput=1
Yes.
And I see you don't use "Message.sendToMidiOut()"?
Ah crap. Something went weird and it's duplicated my script. I'll fix it an update the snippet.
-
@d-healey I think for narrowing it down it would be important to know if Message.sendToMidiOut() equals for example what Message.getNoteNumber() is receiving at the same point of the midi signal flow. Or if the events need to be specified somehow.
EDIT:
Those are the callbacks that appear once I add sendtomidiout to a script processor - percentages that don't change value when I play notes... -
ok so i figured that my last tests in the JUCE plugin host didn't work anymore - now looking at the callback I realised why. I didn't kill the initial notes - so it seems there have to be artificial notes only in the midi buffer. So I have a very simple snippet now that does work in plugin host but in ableton I still get the input notes instead of the single artificial note the plugin is generating. If it does what it should in the plugin host we have to be so damn near to have it working in the daw...
HiseSnippet 1287.3oc6Xs0SibCE1CIyJRX6kc6ppp9znU8grRTTBkxkVUsPtQiVBDQBr8kpUlYbRrXF6od7.DsZeo+xp5uf9qnOu+CnG6IgYF1IozTPpEQd.w4l8m8wmui8zQvsIAAbAxnPuQ9DjwiM6NhIGVaHlxPspiLVzbmC6bvQ8PUG4iCBHNHCib6prZTHOR+68urJ1EyrIwpPni4TaxdTOpLVamseE00sI1gzi5kv601tkMmUi6xCAjjyrLxGaeJd.YerxsELQFOpgCUxEckXII.YjuJ2YT2g7yYQ9eLMfdhKQITA0EFnH0M4tNJDqzhpMj55zYxJN.gLL6Du9yEs9elYapC8J8w6Cep1fUbDI2OLVHM7xkBdURBuxIfWFPxHAjxGAomX10VP8kwVT3YIyVLIQzGCa6IgRjuHie2rFGbfIWwCeJoo.DtJfRqWt7xVvedw2WrX+PlsjxYVb19bI4.VoWT7sEKT7cEstto98yzlZhD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xijKqjiZLxbzBpuFwXiUTxFiMVYhw6MygG1VveicDyqpVXQsFXuko+BmELaqjspfzrwPblkWoLxCX2eissJM90.AZ1wr5bDy2LGwr1bDy2NGwr9bDyFyQLaNyXTMV2ITx8hJqAEcZnaQYXzfggJDc0D5ufq7JlQ
-
@ps Did you follow @jonhallur link about setting up a special MIDI out channel in Ableton?
-
@d-healey yes - same as with any other plugin I use midi out in live with :/
-
-
@ulrik very interesting what you are doing here - the way you setup ableton is def not how it is intended to be. haha
Are you compiling as MIDI FX or AUDIO Fx? -
@d-healey Export as FX.
-
@ulrik compiled your project exactly the same setup but doesn't work.
This is killing me haha
Are you inputting notes with a keyboard? -
@ps compile as audio fx, yes keyboard
-
@ulrik I'm on the Master code from yesterday
-
@ulrik does it work when drawing notes or using the computer keyboard as input?
-
@ps I don't know, have not tried yet
-
@ps Yes it's working