author2

JohnC1315

Inbox View Profile
5Comments
Into: Unity 3d, drawing, programming, making music, electronics, wood working, rokuro, I make video games in my spare time. I teach English mainly. I get a big kick out of seeing the kids grow and improve. I opened a programming by English class for my school last year, and so far so good. Lately I'm obessed with harpsichord and synths.
  • JohnC1315 commented on rgco's instructable Arduino Soundlab
    Arduino Soundlab

    I just sat down for a few hours, running back and forth from piano to soundlab and rooted out the pins one by one. Now I got the little one octave synth working! These are the pitches I found related to the pins:C0 = D11 - RX1C0# = D11 - TX1D0 = D11 - D2D0# = D11 - D3E0 = D11 - D4F0 = D11- D5F0# = D11- D6G0 = D11- D7G0# = D10 - RX1A0 = D10 - TX1A0# = D10 - D2B0 = D10- D3C1 = D10 - D4C1# = D10 - D5D1 = D10 - D6D1# = D10 - D7E1 = D8 - RX1F1 = D8 - TX1F1# = D8 - D2 G1 = D8 - D3G1# = D8 -D4A1 = D8 - D5A1# = D8-D6B1 = D8-D7Sorry you mentioned your interests are drifting towards citizen science, but one more modification to this would make it really cool. Shifting the octave up and down: The original preset synth you posted had a button that cycled through the presets, so I tried copying that …

    see more »

    I just sat down for a few hours, running back and forth from piano to soundlab and rooted out the pins one by one. Now I got the little one octave synth working! These are the pitches I found related to the pins:C0 = D11 - RX1C0# = D11 - TX1D0 = D11 - D2D0# = D11 - D3E0 = D11 - D4F0 = D11- D5F0# = D11- D6G0 = D11- D7G0# = D10 - RX1A0 = D10 - TX1A0# = D10 - D2B0 = D10- D3C1 = D10 - D4C1# = D10 - D5D1 = D10 - D6D1# = D10 - D7E1 = D8 - RX1F1 = D8 - TX1F1# = D8 - D2 G1 = D8 - D3G1# = D8 -D4A1 = D8 - D5A1# = D8-D6B1 = D8-D7Sorry you mentioned your interests are drifting towards citizen science, but one more modification to this would make it really cool. Shifting the octave up and down: The original preset synth you posted had a button that cycled through the presets, so I tried copying that code and having it run "settones()" again with the base frequency (440) changed. It worked, erratically for a moment, then settled back to original frequency, with occasional distorted noises. Running the entire "setup()" didn't help. I'm assuming the main loop has to be suspended for a moment for this to work. Is it a simple mod to shift the octaves during runtime? Thank you very much for your replies so far!

    View Instructable »
  • JohnC1315 commented on rgco's instructable Arduino Soundlab
    Arduino Soundlab

    Thanks for the reply! I was able to get better sound and correct envelopes. However the 2 keys I wired up were D2 and E2, but they play the notes B1 and C1 respectively. There are only 4 connections, so it was easy to see that they were connected correctly. No other keys are wired up. Is the key press logic changed by having keys unwired?I tried checking the code too. Would E2 be number 17 in those conditional statements? In those lines of code, I don't understand where/ how the pin names are tested. Sorry for my code illiteracy, but I wanted to focus on making a nice case

    View Instructable »
  • JohnC1315 commented on rgco's instructable Arduino Soundlab
    Arduino Soundlab

    Hi again, I'm having trouble with this one. I built the full size, 2 octave synth just as yours is, but the keys did not play a scale. I tore it down and fully rewired the keys, same issue. I have checked my connections twice after that. Still not playing in tune. Also, the lowest C did not play. There was a weird issue where the notes never turned off as well.I took a break and returned to it this week, building again from scratch. I am trying to build with just 1 octave for simplicity. I tried connecting only 2 keys to test if they were playing correctly before moving on. They don't play correctly. Same issues, but even worse than before. Is there something I'm missing?

    View Instructable »
  • JohnC1315 commented on rgco's instructable Arduino Soundlab
    Arduino Soundlab

    Hi thank you for the reply! Using a faster micro controller sounds good, however I have arduino nanos all over the place (over 50 of them!) I found the section of code that dictates 440 hz for setting pitch, so I assume I'd change that to add octaves.For this prototype, I'd really like to add just 1 more key, so there would be 3 C keys. Even just 2 octaves, this would make it a lot more useful to play something. The logic code for key presses is quite hard for me to understand. I even printed it out and hilighted the different keywords... can you offer some advice for adding just an upper Ckey. And you say adding 40 keys would be trivial, but adding to that logic code doesnt look easy.

    View Instructable »