electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » Arduino
Calculate chords with an arduino
Post new topic   Reply to topic
Page 2 of 2 [38 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Goto page: Previous 1, 2
Author Message
Grumble



Joined: Nov 23, 2015
Posts: 1310
Location: Netherlands
Audio files: 30

PostPosted: Tue Sep 20, 2016 12:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

Giving each Arduino a different name is totally possible as long as they have a 16u2 on board (that goes for the UNO and MEGA Arduino's). I have tried it this afternoon and it'll work!

And why I stay with the 80's baudrate is because I have old keyboards and electronics I use that is still 31.25 kbaud.
Back to top
View user's profile Send private message Visit poster's website
MusicMan11712



Joined: Aug 08, 2009
Posts: 1082
Location: Out scouting . . .

PostPosted: Tue Sep 20, 2016 2:35 pm    Post subject: Reply with quote  Mark this post and the followings unread

Grumble wrote:
Giving each Arduino a different name is totally possible as long as they have a 16u2 on board (that goes for the UNO and MEGA Arduino's). I have tried it this afternoon and it'll work!

Thanks for the reply. Mine is the original Mega--pre-revisions, so it only has the 8U2. Maybe someday I will update to an R3 (or whatever comes after that).
Back to top
View user's profile Send private message
Grumble



Joined: Nov 23, 2015
Posts: 1310
Location: Netherlands
Audio files: 30

PostPosted: Tue Sep 20, 2016 11:37 pm    Post subject: Reply with quote  Mark this post and the followings unread

Even the 8u2 can be programmed acting as a midi device, though at 31.25kbaud. (I don't know how your arduino/atmega skills are, but this is to program the ATMEGA8U2 and NOT the ATMEGA2560 and/or the ATMEGA328)
Only downside is that You can only use one Mega at a time, because they all have the same name (HIDUINO).
I have added the hex file for this to this post, but you may also look at the link I added B4.


arduino_midi.hex
 Description:

Download (listen)
 Filename:  arduino_midi.hex
 Filesize:  10.14 KB
 Downloaded:  662 Time(s)

Back to top
View user's profile Send private message Visit poster's website
Grumble



Joined: Nov 23, 2015
Posts: 1310
Location: Netherlands
Audio files: 30

PostPosted: Tue Sep 20, 2016 11:57 pm    Post subject: Reply with quote  Mark this post and the followings unread

Just realised: the website where you can "pimp your hiduino" is also based upon the code from Dimitri Diakopoulos, so my guess is that it also works with the 8u2, maybe you can try this?
If it fails, you can still revert to the standard MEGA by flashing usbserial_mega_8u2.hex in the 8u2 residing on your MEGA (also found on the github from DDiakopoulos.
Back to top
View user's profile Send private message Visit poster's website
Grumble



Joined: Nov 23, 2015
Posts: 1310
Location: Netherlands
Audio files: 30

PostPosted: Wed Sep 21, 2016 12:24 am    Post subject: Reply with quote  Mark this post and the followings unread

http://www.hooktheory.com/blog/chord-progression-search-patterns-and-trends/

Rolling Eyes
Back to top
View user's profile Send private message Visit poster's website
MusicMan11712



Joined: Aug 08, 2009
Posts: 1082
Location: Out scouting . . .

PostPosted: Wed Sep 21, 2016 9:05 am    Post subject: Reply with quote  Mark this post and the followings unread

Grumble wrote:
Even the 8u2 can be programmed acting as a midi device, though at 31.25kbaud. (I don't know how your arduino/atmega skills are, but this is to program the ATMEGA8U2 and NOT the ATMEGA2560 and/or the ATMEGA328)
Only downside is that You can only use one Mega at a time, because they all have the same name (HIDUINO).

Thanks for the clarifications. I have never programmed the chips themselves, just the full development board using the Arduino IDE. I have read up on the structure of the AVR chip and a little bit of programming the chip--mainly in connection with trying to understand the possible uses of the interrupts.

I have programmed simple midi output using the hairless midi/usb serial bridge. Also, I have played with simple midi I/O with the mega2560 to and from 5-pin din midi gear by connecting the arduino to a joystick port midi interface--very simple TX and RX to the RX and TX pins of the joystick connector and the current loop (I forget the pins).

I have never used more than one Arduino connected to the same PC, but since you mention it--I will have to dig mine out!!

PS: It was with the original Mega2560 and the hairless usb/serial midi bridge that I was successful with 115200 kbaud midi (as long as I didn't echo the data to the IDE console IIRC).
Back to top
View user's profile Send private message
Cfish



Joined: Feb 24, 2016
Posts: 477
Location: Indiana

PostPosted: Wed Sep 21, 2016 6:03 pm    Post subject: Reply with quote  Mark this post and the followings unread

At the risk of sounding like an idiot. What would be the purpos of having the microprocessor decide the next cord in the music?

I'm in to pretty traditional folk type music. So I'm sure I'm just not grasping the Purpos. However I am very curious, and would love to understand the utility behind the idea.

Another very ambitious project grumble. Looking forward to see where it goes.
Back to top
View user's profile Send private message
Grumble



Joined: Nov 23, 2015
Posts: 1310
Location: Netherlands
Audio files: 30

PostPosted: Wed Sep 21, 2016 10:05 pm    Post subject: Reply with quote  Mark this post and the followings unread

Well to keep me busy is the most importand reason to do this Wink
But from a musical point of view the reason I started this is: Say you have a sequencer slowly playing a sequence of four notes (or eight, or.....) and than have a module transforming each note into a sequence of triades that sounds oke or even good and slowly changes in time without user interference.
Like an arpeggiator fed with notes from a sequencer or keyboard that produces a number of triades that fit the given notes...
How cool is that?
Back to top
View user's profile Send private message Visit poster's website
Cfish



Joined: Feb 24, 2016
Posts: 477
Location: Indiana

PostPosted: Fri Sep 23, 2016 5:28 am    Post subject: Reply with quote  Mark this post and the followings unread

Pretty darn cool.

You have great ideas grumble
Back to top
View user's profile Send private message
Grumble



Joined: Nov 23, 2015
Posts: 1310
Location: Netherlands
Audio files: 30

PostPosted: Sun Nov 13, 2016 1:47 am    Post subject: Reply with quote  Mark this post and the followings unread

to show that I'm still working on this idea...
One music generator (YM2149) wired, time to start coding to see if I can get it to work.
After that: three more generators to wire...


IMG_0258.JPG
 Description:
 Filesize:  1.63 MB
 Viewed:  581 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

IMG_0258.JPG



IMG_0259.JPG
 Description:
 Filesize:  1.74 MB
 Viewed:  583 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

IMG_0259.JPG


Back to top
View user's profile Send private message Visit poster's website
Cfish



Joined: Feb 24, 2016
Posts: 477
Location: Indiana

PostPosted: Sun Nov 13, 2016 8:55 am    Post subject: Reply with quote  Mark this post and the followings unread

You do really neat work grumble!
Back to top
View user's profile Send private message
Grumble



Joined: Nov 23, 2015
Posts: 1310
Location: Netherlands
Audio files: 30

PostPosted: Sun Nov 13, 2016 10:24 am    Post subject: Reply with quote  Mark this post and the followings unread

The first sound generator seems to work, it reacts to code...


there_be_sound.wav
 Description:
And we have sound...

Download (listen)
 Filename:  there_be_sound.wav
 Filesize:  4.3 MB
 Downloaded:  1032 Time(s)

Back to top
View user's profile Send private message Visit poster's website
Grumble



Joined: Nov 23, 2015
Posts: 1310
Location: Netherlands
Audio files: 30

PostPosted: Fri Dec 30, 2016 8:39 am    Post subject: Reply with quote  Mark this post and the followings unread

I quit with the approach to this project.
The three psg's are working, but there is only one envelope per chip (= three voices) so it is not going to work.
But I don't give up, so I've ordered some new chips being some YMF262, which is an FM Operator chip and see what I can do with this type of psg.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic
Page 2 of 2 [38 Posts]
View unread posts
View new posts in the last week
Goto page: Previous 1, 2
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Arduino
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use