electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
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 
Live streaming at radio.electro-music.com

  host / artist show at your time
  Muied Lumens Frequencies
Please visit the chat
 Forum index » DIY Hardware and Software » Arduino
CV recorder, algorithmically generated melody?
Post new topic   Reply to topic
Page 1 of 1 [3 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Hashtag Octothorpe



Joined: Jun 11, 2017
Posts: 19
Location: Grand Rapids MI

PostPosted: Thu Jun 14, 2018 3:39 pm    Post subject: CV recorder, algorithmically generated melody? Reply with quote  Mark this post and the followings unread

My current project is an Arduino that will record a CV into an array and play it back. I've got it working recording the CV from a potentiometer, putting it into an array and playing back that array through a six-bit R2R diode ladder DAC. I'll include an adjustable gain amp on the output to get exactly 1V/oct out of the module, so for software purposes, let the whole numbers from 1 to 12 represent the 12 semitones.

Six bits is 64 notes; five and a third octaves? Should be enough for anyone. Very Happy

I'm not a programmer, but I'm learning and making tons of progress, and I will figure out the project and hopefully make it available somewhere when it's done.


But anyway, I would *love* to have a few algorithms that will generate interesting sequences. Randomness weighted toward harmoniousness??? I mean, music is math, so this should be simple, but if I'm bad at programming, I'm worse at math (though I *LOVE* it.)


Ken Stone's Infinite Melody module does something like this in hardware, and it's staggeringly complex (I build everything on paper "breadboards" without PCBs) so doing it in software will be better.
Back to top
View user's profile Send private message
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 22557
Location: The Netherlands, Enschede
Audio files: 220
G2 patch files: 319

PostPosted: Thu Jun 14, 2018 4:23 pm    Post subject: Reply with quote  Mark this post and the followings unread

For a random generator .. you could define a set of notes in a base octave and randomly select from that. With a couple more DA outs you could do chords, and then look into chord progressions.

But, since you have a recorder, and a recorded array of notes (which basically would be a sequencer), there is a lot of fun to be done with that too. Like play the recorded notes in random order, or sort them low to high to get an arpeggio, or high to low .. with a selectable length, like the last four, or 16.

The way new notes are accepted for the arpeggiator selection can be manipulated too .. as in accept all, accept unique ones only. Acceptance could depend on a detected interval as well, like when you play one note and at that time a note with a certain offset from that comes in (like a fifth or whatever) replace the current note with the new one, and otherwise just let it pass.

You could also apply inversion, as in subtract the note values from some fixed offset to get another variation on what is played. That would be nice with an extra input selecting that function. Could also add an input to play the recorded notes in reversed order.

A more complex thing to do would be to record short sequences of notes, say of three or four notes, and then select randomly from such a sequence. Or you could compute how often one note is being followed by another, and use that as a weight in the selection process for playing a next note .. given a current one.

Anyway, those are some things I've found to be nice to do with recorded notes :-)

_________________
Jan
Back to top
View user's profile Send private message Visit poster's website
Hashtag Octothorpe



Joined: Jun 11, 2017
Posts: 19
Location: Grand Rapids MI

PostPosted: Thu Jun 14, 2018 7:25 pm    Post subject: Reply with quote  Mark this post and the followings unread

I've already got two six-bit outs, so that's taking up 12 pins. Very Happy I might build two of them for my synth because WHY NOT!!!

I won't be able to "play" notes since I don't have a keyboard... my synthesizer is not typical... but you've given me stuff to think about.

I'll use my weak math skills to try to come up with something.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic
Page 1 of 1 [3 Posts]
View unread posts
View new posts in the last week
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
e-m mkii

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


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