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
  mosc Chez mosc - tonight, Twyndyllyngs live
Please visit the chat
 Forum index » DIY Hardware and Software
DIY Euclidean Polyrhythm Generator
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [2 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
sneakthief



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

PostPosted: Fri Feb 07, 2014 7:04 am    Post subject: DIY Euclidean Polyrhythm Generator
Subject description: for ~$20
Reply with quote  Mark this post and the followings unread

A couple a years ago, a guy called Tombola made a Euclidean Polyrhythm generator for Arduino. The documentation was very sparse and the code was rough: http://www.muffwiggler.com/forum/topic-45485.html

Here's the original video demo from then:




I cleaned up Tombola's code a bit and imported a much better encoder-reading library. Now the encoders work great! I also made a schematic and included much-needed diode input-protection.

The rhythm offset function still hasn't been implemented, ie. being able rotate a rhythm pattern forward or backward. Anybody want to give it a try?

It's a pretty cheap experiment:

- Arduino Nano 3.0: $7.50 USD
http://www.ebay.com/sch/?_nkw=arduino%20nano%203.0&clk_rvr_id=583539516696

- LED Matrix: $3.37 USD
http://www.ebay.com/itm/400373209766?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

(if you buy this exact matrix, for some reason the LED output is mirrored so I had to modify the LedControl library)

- 3 Encoders with switches (I used ALPS ENC11's)

- SPST button

- 2x 1n4148 diodes (protects the input by limiting voltage to 0-5V )

- 100 Ohm resistor

- 5 Jacks


Code: http://sneak-thief.com/Euclid/Tombola_Euclidean_v02.ino


Note: These two libraries are needed:

- LedControl
http://playground.arduino.cc/Main/LedControl

- Encoder
http://www.pjrc.com/teensy/td_libs_Encoder.html

Posted Image, might have been reduced in size. Click Image to view fullscreen.

Posted Image, might have been reduced in size. Click Image to view fullscreen.

When the rhythms are playing, the display flips between page 1 (steps 1-8 ) and page 2 (steps 9-16).

Here's what the display shows...

Row 1: What step is Output 1 playing
Row 2: Output 1 Pattern (steps 1-8 or 9-16)

Row 3: What step is Output 2 playing
Row 4: Output 2 Pattern (steps 1-8 or 9-16)

Row 5: What step is Output 3 playing
Row 6: Output 3 Pattern (steps 1-8 or 9-16)

Row 7: Which channel is selected

- 2 dots on the left for Channel 1
- 2 dots in the middle for Channel 2
- 2 dots on the right for Channel 3


Row 8: Current triggers

1. Input trigger
2. -
3. Output 1 trigger
4. Output 1 off-beat trigger (all the steps when Output 1 isn't playing)
5. Output 2 trigger
6. -
7. Output 3 trigger
8. -


* When you have Channel 1 selected and you rotate the N- and K-knobs, Rows 1 and 2 will respectively show the pattern length (N) or pattern density (K).

The same goes for Channel 2 (Rows 3 and 4) and Channel 3 (Rows 5 and 6)

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



Joined: Apr 02, 2010
Posts: 309
Location: Albuquerque, NM

PostPosted: Fri Feb 07, 2014 1:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

looks awesome, thanks for sharing!
looking forward to building one!

_________________
http://www.youtube.com/user/borisandfef
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [2 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
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