|
Post by maydonpoliris on Oct 3, 2022 3:53:19 GMT
I refreshed everything and it went back to ACM0 but no luckas per below
udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[121.734459] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2 (usb)
KERNEL[121.734594] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.0 (usb)
KERNEL[121.734683] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.1 (usb)
UDEV [121.748375] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2 (usb)
UDEV [121.752237] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.1 (usb)
KERNEL[121.756667] add /module/cdc_acm (module)
KERNEL[121.758290] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.0/tty/ttyACM0 (tty)
KERNEL[121.758385] add /bus/usb/drivers/cdc_acm (drivers)
UDEV [121.758761] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.0 (usb)
UDEV [121.758951] add /module/cdc_acm (module)
UDEV [121.762217] add /bus/usb/drivers/cdc_acm (drivers)
UDEV [121.764632] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.0/tty/ttyACM0 (tty)
~ $ ttymidi -s /dev/ttyACM0 -b 115200 &
[1] 1279
~ $ /dev/ttyACM0: No such file or directory
after googling I did run a disconnect just in case I cooked it earlier
~ $ aconnect -d 128:0 129:1
No subscription is found
~ $ aconnect -d 129:0 128:0
No subscription is found
|
|
|
Post by maydonpoliris on Oct 3, 2022 3:56:49 GMT
I’m just glad someone else is getting into arduino+AE too! Also hoping to get this all figured out so we can share it over on lines—might be a nice boost for the AE format! So thank you for being the norns guinea pig. I might be hitting the hay soon though, so that’s why if I go quiet for a while. yeah of course we can do this another time. Thought it was starting to get late over there. appreciate your time. quite happy to be a guinea pig any time you need to test anything too.
|
|
|
Post by maydonpoliris on Oct 3, 2022 5:16:28 GMT
I unplugged everything and left it to cool off then connected and ran it again. I also plugged in another midi connection that I know works then unplugged in case it cleared any blockages and looks like it worked now to test things
~ $ ttymidi -s /dev/ttyACM0 -b 115200 &
[1] 1283
~ $ aconnect -i
client 0: 'System' [type=kernel]
0 'Timer '
1 'Announce '
client 14: 'Midi Through' [type=kernel]
0 'Midi Through Port-0'
client 128: 'Client-128' [type=user,pid=361]
0 'Virtual RawMIDI '
client 129: 'ttymidi' [type=user,pid=1283]
0 'MIDI out '
~ $ aconnect -o
client 14: 'Midi Through' [type=kernel]
0 'Midi Through Port-0'
client 128: 'Client-128' [type=user,pid=361]
0 'Virtual RawMIDI '
client 129: 'ttymidi' [type=user,pid=1283]
1 'MIDI in '
~ $ aconnect 128:0 129:1
~ $ aconnect 128:0 129:1
Connection is already subscribed
~ $
|
|
|
Post by pt3r on Oct 3, 2022 6:20:15 GMT
I have no spare arduino lying around for the moment but I find this nonetheless very interesting to follow, to pick up a thing or two. Interesting stuff. I guess creating a TRS style output on an arduino would be well within the possibilities in case we wanted to sequence some hardware that accepts MIDI over TRS, from the AE without the need to go via a computer.
|
|
|
Post by maydonpoliris on Oct 3, 2022 7:29:54 GMT
glad it's interesting to someone else. midi over trs is a good idea might be easier than trying to understand this norns midi in. Update is unable to see if Norns is getting a signal from the Uno. On the Uno the tx light is flashing in time with the Ae 2Env that is patched into Uno pin2 When I open the decay on the 2env using either trigger or gate the Uno tx light flashes more often indicating that it is reading the Ae and it stops flashing when I unplug the USB from the Norns indicating some connection onto more Norns googling and testing
|
|
|
Post by pt3r on Oct 3, 2022 7:53:12 GMT
glad it's interesting to someone else. midi over trs is a good idea might be easier than trying to understand this norns midi in. Update is unable to see if Norns is getting a signal from the Uno. On the Uno the tx light is flashing in time with the Ae 2Env that is patched into Uno pin2 When I open the decay on the 2env using either trigger or gate the Uno tx light flashes more often indicating that it is reading the Ae and it stops flashing when I unplug the USB from the Norns indicating some connection onto more Norns googling and testing Yep it seems like you are getting closer to a working solution, good luck. There is light at the end of the tunnel, let's hope it's not a train.
|
|
|
Post by maydonpoliris on Oct 3, 2022 9:50:36 GMT
|
|
|
Post by reductionist_earth_catalog on Oct 4, 2022 2:33:35 GMT
Yeah I agree that the connection looks to be established. One thing to try would be to change the midi note sent per gate--I know that some synths only respond to certain ranges of midi notes, and it might be the case with the Norns script you are working with. In line 74 of the Arduino code ("note = x + 1;" you can change the 1 to be something higher, like, say, 20 or something, and see if that changes anything.
|
|
|
Post by reductionist_earth_catalog on Oct 4, 2022 3:31:38 GMT
Regarding the TRS MIDI idea, I think it's a good one. It occurs to me that it might be possible to patch up a TRS MIDI output with the Arduino and a 4I/O. You could patch 5V and the Arduino Tx pin into sockets 1 and 2 or 3 and 4 of the 4IO, and then plug the TRS-DIN adapter into 4IO socket 1 or 3. I'm not sure which 4IO input exactly the 5V and MIDI Tx signals could go into, it would depend on the type of TRS-DIN adapter you have (https://minimidi.world) and which 4IO inputs go to tip or ring of the TRS cable. You would also have to change the baud rate of the Arduino code to 31250 (line 39 of the Arduino code, Serial.begin(115200); would become Serial.begin(31250);
|
|
|
Post by maydonpoliris on Oct 4, 2022 10:41:48 GMT
Yeah I agree that the connection looks to be established. One thing to try would be to change the midi note sent per gate--I know that some synths only respond to certain ranges of midi notes, and it might be the case with the Norns script you are working with. In line 74 of the Arduino code ("note = x + 1;" you can change the 1 to be something higher, like, say, 20 or something, and see if that changes anything. Tried several numbers and different norns scripts but no luck. played around with the mapping numbers in norns too. I guess my knowledge on midi isn't great either. To double check my set up. I've got a patch cable going out from the 2ENV to pin 2 on the Uno connected UNO to norns via USB On the norns I've set the Midi device on channel 1 to be on Virtual Can't find any information about the Virtual Midi norns setup online or ttymidi with norns. All the youtube videos about norns don't shed any light will keep trying though
|
|
|
Post by maydonpoliris on Oct 4, 2022 11:03:12 GMT
Would you know of any terminal logs etc that could potentially show what cc or other are coming across from the Uno into norms. Similar to how you found the ACM0 Cheers
|
|
|
Post by reductionist_earth_catalog on Oct 4, 2022 14:25:11 GMT
Good idea about monitoring. You can start ttymidi in verbose mode (-v), which will show the midi messages that are coming through:
ttymidi -s /dev/ttyACM0 -v
|
|
|
Post by reductionist_earth_catalog on Oct 4, 2022 16:53:21 GMT
|
|
|
Post by maydonpoliris on Oct 4, 2022 23:23:52 GMT
Cool thanks for that and finding the norms midi app too. Will check this when home tonight
|
|
|
Post by reductionist_earth_catalog on Oct 5, 2022 2:56:14 GMT
Tried patching 4I/o as a midi trs output—if I patch a MIDI serial line (such as from the tx pin of an arduino, though I was using MIDI from my bastl microgranny 2) to the 2nd input of 4io and +5v from braedboard to the 1st input (with the switches set to dc), and then I connect a midi-trs cable (the same kind as used with the midi input on the master module), then I can control extrernal gear! So that might be a better option than messing around with ttymidi, which doesn’t seem very robust. I imagine that all you would have to do is change the baud rate in the arduino code as I described earlier.
|
|
|
Post by pt3r on Oct 5, 2022 6:22:07 GMT
Regarding the TRS MIDI idea, I think it's a good one. It occurs to me that it might be possible to patch up a TRS MIDI output with the Arduino and a 4I/O. You could patch 5V and the Arduino Tx pin into sockets 1 and 2 or 3 and 4 of the 4IO, and then plug the TRS-DIN adapter into 4IO socket 1 or 3. I'm not sure which 4IO input exactly the 5V and MIDI Tx signals could go into, it would depend on the type of TRS-DIN adapter you have (https://minimidi.world) and which 4IO inputs go to tip or ring of the TRS cable. You would also have to change the baud rate of the Arduino code to 31250 (line 39 of the Arduino code, Serial.begin(115200); would become Serial.begin(31250); Excellent idea.
|
|
|
Post by pt3r on Oct 5, 2022 12:26:13 GMT
To check whether you have midi coming out of the 4 I/O you can connect it to the midi in of the master module, that way your AE modular can sequence itself via midi (no inuendo intended )
|
|
|
Post by reductionist_earth_catalog on Oct 5, 2022 19:19:24 GMT
MIDIception 🤣
|
|
|
Post by maydonpoliris on Oct 6, 2022 9:57:28 GMT
ran ttymidi verbose mode and this is a sample of messages returned
~ $ ttymidi -s /dev/ttyACM0 -v
Serial 0x90 Note on 000 001 000
Serial 0x80 Note off 000 001 000
Serial 0x90 Note on 000 001 000
Serial 0x80 Note off 000 001 000
Serial 0x90 Note on 000 001 000
Serial 0x90 Note on 000 001 000
Serial 0x80 Note off 000 001 000
Serial 0x90 Note on 000 007 000
Serial 0x80 Note off 000 007 000
Serial 0x90 Note on 000 008 000
Serial 0x90 Note on 000 004 000
Serial 0x80 Note off 000 004 000
Serial 0x80 Note off 000 008 000
Serial 0x80 Note off 000 007 000
Serial 0x90 Note on 000 006 000
Serial 0x80 Note off 000 006 000
posting this before I investigate what the numbers mean but wanted to show the Norns is getting a Note on and off which is great
|
|
|
Post by maydonpoliris on Oct 6, 2022 10:28:14 GMT
set the Norns app up and no midi messages being read by the Virtual channel I can see messages coming through from other midi devices like the Circuit Mono Station as a check to make sure the app works I'll cross check the midi setting across both channels maybe Norns doesn't link the ttymidi link using virtual
|
|
|
Post by reductionist_earth_catalog on Oct 6, 2022 13:55:30 GMT
Yeah, at least ttymidi seems to be working. This post on lines (https://llllllll.co/t/micro-bit-as-norns-midi-friend/47371) has someone running “aconnect 128:0 129:0” to connect ttymidi to the virtual midi port and it seems to work for them. The post also says “ Make sure the virtual is one the devices in SYSTEM > DEVICES > MIDI on norns.” is the virtual midi port something that has to be enabled in settings elsewhere on norns?
|
|
|
Post by maydonpoliris on Oct 6, 2022 19:19:06 GMT
yes that is the set up i am using through System - Devices. no other spots that i know of though something worth investigating.
i'll read more up on that link and see if any setups im missing as your coding is working, proof of the monitor
|
|
|
Post by reductionist_earth_catalog on Oct 6, 2022 20:26:43 GMT
Yeah I’m afraid I’m running out of ideas (still need to see if I can borrow a norns shield from someone local). Do you have a midi-trs adapter and a usb midi interface that norns will recognize? That should be enough for the 4i/o midi-trs hack.
|
|
|
Post by maydonpoliris on Oct 7, 2022 8:00:04 GMT
It's got to be some set up that I'm missing on the norns. Probably something simple too that I'm missing. I'll start playing around with that hack.
|
|
|
Post by maydonpoliris on Oct 7, 2022 10:45:38 GMT
set up the hack and using the norns midi monitor app can see only note offs coming through ie no note ons. so close.
i move the midi cable out of the 4i/o and into another midi source and note ons appear in norns.
i played around with the Baudrate as per instructions, the x+1 or 20, 100 etc. but no luck.
any thoughts what this could be. oh yeah and the tx light on the arduino that was flashing in time with the gate in previous ttymidi tests isn't flashing any more if that means anything.
|
|