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
  Rob Adventures in Sound
Please visit the chat
 Forum index » DIY Hardware and Software » Arduino
LFO proposal
Post new topic   Reply to topic
Page 1 of 1 [9 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
bubzy



Joined: Oct 27, 2010
Posts: 535
Location: United Kingdom
Audio files: 50

PostPosted: Mon Jan 28, 2013 5:21 am    Post subject: LFO proposal Reply with quote  Mark this post and the followings unread

having worked a little with the SPI DAC on the arduino, it dawned on me today that a very nice "programmable" LFO could be built from it, you could have selectable waveforms, tempo control, trigger input (for sync)
and the thing that really interested me was the possibility of "drawing" a waveform, this could be acheived by breaking a wave into a selectable number of chunks, and then letting the user choose the output level of each of these, so that potentially any waveform is possible.
the only bummer might be displaying it, this could possibly be overcome by using the 128 pixel displays but i havent worked with those yet so unsure of how easy that would be.

dont know if anyone can be bothered to implement this or not, but its out there as an idea now, might have a go myself, when i clear this backlog....*checks backlog*...that may be some time. Very Happy

_________________
_Richard_ Smile
Back to top
View user's profile Send private message
elmegil



Joined: Mar 20, 2012
Posts: 1346
Location: Chicago
Audio files: 14

PostPosted: Mon Jan 28, 2013 6:22 am    Post subject: Reply with quote  Mark this post and the followings unread

I have a shield that is two MCP4922's, a TL074 and a TL072. The original intent was a foundational piece of MIDI2CV with the Arduino--the 4 outputs from the MCP4922's go to the TL074 for buffering, and two other digital pins go to the TL072 to generate gate/trigger out.

Then I sat and brainstormed what other things I could do with 4 CV outs and two digital outs.

LFO was one of the things. However, i hadn't really thought about it any further. The input for sync is a good idea...I don't have any room on my shield to add input buffering to protect the Arduino, but then again, I was going to make multiple shields for the MIDI purpose anyway...

edit: One thing this DOESN'T do is shifting or scaling of the waveform. So it's a 0 - 5V wave. Probably should rework the op amp outputs to not be simple buffers, but actually do some of that scaling. Smile
Back to top
View user's profile Send private message
Skellz



Joined: Dec 31, 2008
Posts: 18
Location: Ireland

PostPosted: Tue Mar 19, 2013 5:48 pm    Post subject: Re: LFO proposal Reply with quote  Mark this post and the followings unread

bubzy wrote:
having worked a little with the SPI DAC on the arduino, it dawned on me today that a very nice "programmable" LFO could be built from it, you could have selectable waveforms, tempo control, trigger input (for sync)
and the thing that really interested me was the possibility of "drawing" a waveform, this could be acheived by breaking a wave into a selectable number of chunks, and then letting the user choose the output level of each of these, so that potentially any waveform is possible.
the only bummer might be displaying it, this could possibly be overcome by using the 128 pixel displays but i havent worked with those yet so unsure of how easy that would be.

dont know if anyone can be bothered to implement this or not, but its out there as an idea now, might have a go myself, when i clear this backlog....*checks backlog*...that may be some time. Very Happy


Use sliders and interpolate between the values. Sliders will be compact and can display your waveform. Or google for touch displays made out of those square led matrixs you can get from sparkfun http://www.youtube.com/watch?v=BcqXhpOE71M
Back to top
View user's profile Send private message
bubzy



Joined: Oct 27, 2010
Posts: 535
Location: United Kingdom
Audio files: 50

PostPosted: Wed Mar 20, 2013 7:04 am    Post subject: Reply with quote  Mark this post and the followings unread

yeah, that's kinda what I had in mind, just gotta wait for some time to have a go at it, busy with analog stuff right now Smile
_________________
_Richard_ Smile
Back to top
View user's profile Send private message
bubzy



Joined: Oct 27, 2010
Posts: 535
Location: United Kingdom
Audio files: 50

PostPosted: Mon Mar 25, 2013 3:55 am    Post subject: Reply with quote  Mark this post and the followings unread

welp, I've done some reading, a lot of asking (thanks scott) and have a very simple prototype growing on the breadboard.

so far ive got 5 adjustable "points", I have a "curved" waveform available, "linear" and "square" will also be options on the board, it will have adjustable tempo and sync in, im guessing that with a sync in option the unit will take a few clock pulses, average them out and then draw the waveform based on the time between the pulses. theres a possibility that I could implement a 1/1 1/2 1/4 etc switch to have the waveform sync at a specified time not sure how useful that would be.

just an update anyway Smile

_________________
_Richard_ Smile
Back to top
View user's profile Send private message
sneakthief



Joined: Jul 24, 2006
Posts: 525
Location: Berlin

PostPosted: Mon Mar 25, 2013 4:20 am    Post subject: Reply with quote  Mark this post and the followings unread

If you haven't already, you should take a few cues from the Electric Druid:

http://www.electricdruid.net/forums.html?page=projects.lfo9

_________________
Sneak-Thief - raw electrofunk
Back to top
View user's profile Send private message Visit poster's website
bubzy



Joined: Oct 27, 2010
Posts: 535
Location: United Kingdom
Audio files: 50

PostPosted: Thu Mar 28, 2013 6:28 am    Post subject: Reply with quote  Mark this post and the followings unread

http://www.youtube.com/watch?v=d66fnWJZleQ
_________________
_Richard_ Smile
Back to top
View user's profile Send private message
diablojoy



Joined: Sep 07, 2008
Posts: 790
Location: melbourne australia
Audio files: 11

PostPosted: Sun Apr 07, 2013 2:47 am    Post subject: Reply with quote  Mark this post and the followings unread

Quote:
so far ive got 5 adjustable "points", I have a "curved" waveform available, "linear" and "square" will also be options on the board, it will have adjustable tempo and sync in, im guessing that with a sync in option the unit will take a few clock pulses, average them out and then draw the waveform based on the time between the pulses.

very cool keep the info coming
I am just starting out getting into arduino for another project, so i know almost nothing as yet
but it occurs to me that this direction you are going does not just pertain to
an LFO it could also be treated as an EG and a drawable EG on a touch screen would be very interesting indeed.

_________________
In an infinite universe one might very well
ask where the hell am I
oh yeah thats right the land of OZ
as good an answer as any
Back to top
View user's profile Send private message
bubzy



Joined: Oct 27, 2010
Posts: 535
Location: United Kingdom
Audio files: 50

PostPosted: Mon Apr 08, 2013 6:32 am    Post subject: Reply with quote  Mark this post and the followings unread

im trying to keep this simple, so I've decided against a lcd menu driven interface, and im sticking with led's for indication and a 3x7segment display for the BPM counter. it will have a clock out, also clock in (which should count and display BPM) using this as an EG is a nice idea, so ill look into adding a "one shot" mode with a trigger in, im also considering adding a "free" mode, that isn't constrained to a particular BPM and just "goes with the flow" Very Happy

BPM counter is working.
have the waveform looking neat now, with some efficiency improvements by storing the values in an array instead of working them out every cycle
(thanks Scott and blue)

there is a pushbutton now to "capture" the new waveform from the potentiometers, this allows for greater speed as the calculation for the interpolated values is done only once.

there are 4(I think) possible types of wave
a "square" wave, so just the peaks.
a "linear" wave, that interpolates in a direct line between points
a "round" wave that uses catmull spline interpolation.
and im sure theres another Very Happy im at work so I cant look it up.
these will be selectable via a pushbutton.

more features and fun soon Smile
thanks for your interest.

added a pic of its current state (messy Razz)


BHM3eOlCMAEeMv-[1].jpg
 Description:
 Filesize:  45.27 KB
 Viewed:  1448 Time(s)

BHM3eOlCMAEeMv-[1].jpg



_________________
_Richard_ Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic
Page 1 of 1 [9 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
emSynth

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