| View previous topic :: View next topic |
| Author |
RCD with longer divisions |
JP Super Deluxe Wiggler
Joined: 07 Jan 2010 Last Visit: 29 Jan 2013
   Posts: 1084 Location: NJ
|
Posted: Mon Feb 27, 2012 11:44 am Post subject: RCD with longer divisions |
 |
|
|
I was wondering if there's a possibility that a variant of the RCD firmware/hex is floating around that might do even longer divisions.
Now I have an RCD and an SCM, I'd really like a super RCD that I could use for triggering x1, x4, x8, x12, x16, x20, x24, x28, x32 etc for triggering bar length progressions.
I do understand I could just clock the x4 out of my rcd into another rcd, but figured I'd ask if a specific version might exist. |
|
| Back to top |
|
 |
50quidsoundboy beneath the carpet tiles, the beach
Joined: 07 Nov 2011 Last Visit: 17 May 2013
 Posts: 477 Location: London, UK
|
Posted: Mon Feb 27, 2012 11:52 am Post subject: |
 |
|
|
| isn't this what the RCD breakout panel is for? goes down to x64 if i remember correctly. it's very cheap, you can even buy a kit (i haven't built mine yet...) |
|
| Back to top |
|
 |
bsmith Super Deluxe Wiggler
Joined: 07 Jan 2010 Last Visit: 20 May 2013
   Posts: 2342 Location: Dallas
|
Posted: Mon Feb 27, 2012 12:02 pm Post subject: |
 |
|
|
If you have the avrisp then grab code from the 4ms site here.
| Quote: |
if (switchread==0) {
t=7;
d=adc>>5;} //LL: d=0..7, masked by t=0b00000111 gives on jack 1 DIV 1-8
else if (switchread==(1<<ROTATE_JUMPER2)) {
t=15;
d=(adc>>4)+8;} //LH: d=8..23, masked by t=0b00001111 gives: DIV 9-16|1-8
else if (switchread==(1<<ROTATE_JUMPER1)) {
t=31;
d=(adc>>3)+16;} //HL: d=16..47, masked by t=0b00011111 gives: DIV 17-32|1-16
else {
t=63;
d=(adc>>3)+32;} //HH: d=31..95, masked by t=0b00111111 gives: DIV 32-64|1-31
|
Those are the jumper settings - so the t= in the various ones is the top division for that jumper setting ( minus 1 - in the code generally look at the outs and divisions starting at '0'). You'll want to up that t= value to the top division you're wanting for whichever switch setting.
The various gate and jumper sections have parts that look like:
| Quote: | if (GATEMODE_JUMPER){
if (o0==((((0+d)&t)/2)+1)){OFF(OUT_PORT1,0);}
if (o1==((((1+d)&t)/2)+1)){OFF(OUT_PORT1,1);}
if (o2==((((2+d)&t)/2)+1)){OFF(OUT_PORT1,2);}
if (o3==((((3+d)&t)/2)+1)){OFF(OUT_PORT1,3);}
if (o4==((((4+d)&t)/2)+1)){OFF(OUT_PORT1,4);}
if (o5==((((5+d)&t)/2)+1)){OFF(OUT_PORT1,5);}
if (o6==((((6+d)&t)/2)+1)){OFF(OUT_PORT2,7);}
if (o7==((((7+d)&t)/2)+1)){OFF(OUT_PORT2,6);}
} else {
if (++o0>((0+d)&t)){ o0=0;}
if (++o1>((1+d)&t)){ o1=0;}
if (++o2>((2+d)&t)){ o2=0;}
if (++o3>((3+d)&t)){ o3=0;}
if (++o4>((4+d)&t)){ o4=0;}
if (++o5>((5+d)&t)){ o5=0;}
if (++o6>((6+d)&t)){ o6=0;}
if (++o7>((7+d)&t)){ o7=0;}
|
So could maybe change the upbeat one to:
if (++o0>((0+d)&t)){ o0=0;}
if (++o1>((3+d)&t)){ o1=0;}
if (++o2>((7+d)&t)){ o2=0;}
if (++o3>((11+d)&t)){ o3=0;}
if (++o4>((15+d)&t)){ o4=0;}
if (++o5>((19+d)&t)){ o5=0;}
if (++o6>((23+d)&t)){ o6=0;}
if (++o7>((27+d)&t)){ o7=0;}
or something like that - poke with it. _________________ Soundcloud | Twitter | epicurean.com |
|
| Back to top |
|
 |
infradead Super Deluxe Wiggler
Joined: 20 Jan 2011 Last Visit: 20 May 2013
  Posts: 2430 Location: tacoma wa
| |
| Back to top |
|
 |
JP Super Deluxe Wiggler
Joined: 07 Jan 2010 Last Visit: 29 Jan 2013
   Posts: 1084 Location: NJ
|
Posted: Mon Feb 27, 2012 12:10 pm Post subject: |
 |
|
|
| infradead wrote: | | o_0 he is a wizard with the RCD!! |
BURN HIM!~!
 |
|
| Back to top |
|
 |
JP Super Deluxe Wiggler
Joined: 07 Jan 2010 Last Visit: 29 Jan 2013
   Posts: 1084 Location: NJ
|
Posted: Mon Feb 27, 2012 12:11 pm Post subject: |
 |
|
|
| bsmith wrote: | | If you have the avrisp then grab code from the 4ms site... snipped ...or something like that - poke with it. |
I need to buy a burner and look into this some more.
Although my worry is I'll get carried away and before I know it I'll have 12u full of RCD's all going crazy. |
|
| Back to top |
|
 |
bsmith Super Deluxe Wiggler
Joined: 07 Jan 2010 Last Visit: 20 May 2013
   Posts: 2342 Location: Dallas
| |
| Back to top |
|
 |
Rozzer To the pub!
Joined: 25 Oct 2009 Last Visit: 20 May 2013
   Posts: 609 Location: Manchester, UK
| |
| Back to top |
|
 |
infradead Super Deluxe Wiggler
Joined: 20 Jan 2011 Last Visit: 20 May 2013
  Posts: 2430 Location: tacoma wa
|
Posted: Mon Feb 27, 2012 1:22 pm Post subject: |
 |
|
|
| Rozzer wrote: | Wow, I'm very interested in this. I've often thought it would be cool to have the RCD rotating non-sequential divisions.
bmsith - have you actually had this working with your code tweak? Has anyone? |
when i said bsmith was a wizard he is.
you should hang out on IRC and talk to him about it. _________________ Tacoma Noise Rodeo
much neglected blog
Modular Cases: .Monster baser. and .mostly empty 6u. |
|
| Back to top |
|
 |
bsmith Super Deluxe Wiggler
Joined: 07 Jan 2010 Last Visit: 20 May 2013
   Posts: 2342 Location: Dallas
|
Posted: Mon Feb 27, 2012 1:29 pm Post subject: |
 |
|
|
| Rozzer wrote: | Wow, I'm very interested in this. I've often thought it would be cool to have the RCD rotating non-sequential divisions.
bmsith - have you actually had this working with your code tweak? Has anyone? |
Yeah, I've changed what the jack divisions put out, as well as some other things like changing some jacks to rotate in increments of 2 while others do 1 as shipped...
there may or may not be some much cooler stuff on the rcd being worked on by bigger brains than myself we can all look forward to.
 _________________ Soundcloud | Twitter | epicurean.com |
|
| Back to top |
|
 |
Rozzer To the pub!
Joined: 25 Oct 2009 Last Visit: 20 May 2013
   Posts: 609 Location: Manchester, UK
| |
| Back to top |
|
 |
machetemirage Common Wiggler
Joined: 05 Jan 2011 Last Visit: 20 May 2013
  Posts: 250 Location: Melbourne, FL
|
Posted: Mon Feb 27, 2012 1:54 pm Post subject: |
 |
|
|
Get a second RCD, and send the slowest clock from the first to the second....  |
|
| Back to top |
|
 |
JP Super Deluxe Wiggler
Joined: 07 Jan 2010 Last Visit: 29 Jan 2013
   Posts: 1084 Location: NJ
|
Posted: Mon Feb 27, 2012 1:58 pm Post subject: |
 |
|
|
| AVR programmer ordered, 3rd RCD/SCm kit ordered. :-) I'm keeping this third one for bonkers. |
|
| Back to top |
|
 |
Rozzer To the pub!
Joined: 25 Oct 2009 Last Visit: 20 May 2013
   Posts: 609 Location: Manchester, UK
| |
| Back to top |
|
 |
JP Super Deluxe Wiggler
Joined: 07 Jan 2010 Last Visit: 29 Jan 2013
   Posts: 1084 Location: NJ
|
Posted: Tue Feb 28, 2012 9:15 am Post subject: |
 |
|
|
I can see the RCD project files:
http://4mspedals.com/clocker/code/rcd_avrgcc_project.zip
But does anyone know if the other hex files are available as project bundles? I'd love to see how the sequential switch and the SCM are coded, to get some foundation for how to approach some of my ideas.
I was also thinking of putting some of the project files up on github, so they can be versioned, and forked and bug fixed communially.
Hoping Dann, might wander in here and say everything would be cool with that  |
|
| Back to top |
|
 |
4mspedals Wiggling with Experience
Joined: 21 Jul 2009 Last Visit: 19 May 2013
   Posts: 383 Location: Portland, OR
|
Posted: Tue Feb 28, 2012 11:27 am Post subject: |
 |
|
|
Yes! I haven't used github, but it looks allright. If you want to set up a clocker repository, I'll put the various versions I have around on it. It makes a lot of sense to use a revisioning system because there are several forks already, and I'm working on some new ones too...
Here's the SCM project files:
http://www.4mspedals.com/scm.php#firmware
I've got the Tracking Gate Sequencer code as well, I can throw that up too.
And I know I need to comment better Please feel free to ask me questions/explanations of the code.. |
|
| Back to top |
|
 |
Drumdrumdrumdrum What she said
Joined: 26 Jul 2011 Last Visit: 20 May 2013
 Posts: 2902 Location: Tropical Australia
|
Posted: Tue Feb 28, 2012 11:35 am Post subject: |
 |
|
|
What fork!? I thought it was a spoon?
The only thing that makes any sense to me in this thread is "a second RCD" _________________ "Modular synths can take your ego out of the equation – which, in music, is a blessing" - Jeremy Greenspan
Gear For Sale/Trade: http://www.muffwiggler.com/forum/viewtopic.php?t=83341 |
|
| Back to top |
|
 |
4mspedals Wiggling with Experience
Joined: 21 Jul 2009 Last Visit: 19 May 2013
   Posts: 383 Location: Portland, OR
|
Posted: Tue Feb 28, 2012 2:03 pm Post subject: |
 |
|
|
Heh... OK with thedug's help I dove into github... started a repository here:
https://github.com/4ms/Clocker
Maybe we should move this discussion to the DIY forum? |
|
| Back to top |
|
 |
a scanner darkly a fuzzy beacon
Joined: 16 Nov 2011 Last Visit: 20 May 2013
 Posts: 798 Location: Vancouver • Seattle
|
Posted: Tue Feb 28, 2012 2:33 pm Post subject: |
 |
|
|
This is awesome. Just bought an RCD because of this thread. I want to try programming something more radical with it though
I had a quick look at the code (and there is actually a lot of comments - very helpful ) so if I understand correctly RCD (or SCM) can be seen as 2 CV inputs going through ADC, and same ADC converts additional CV inputs in the extensions? _________________ music • dj mixes • eurorack video tutorials • bug |
|
| Back to top |
|
 |
JP Super Deluxe Wiggler
Joined: 07 Jan 2010 Last Visit: 29 Jan 2013
   Posts: 1084 Location: NJ
|
Posted: Tue Feb 28, 2012 2:52 pm Post subject: |
 |
|
|
| 4mspedals wrote: | Heh... OK with thedug's help I dove into github... started a repository here:
https://github.com/4ms/Clocker
Maybe we should move this discussion to the DIY forum? |
Awesome ! This is going to be an adventure.
As I suspected SCM is much more complex than the RCD by a factor of pw0=8400,pw1=4200,pw2=2800,pw3=2200,pw4=1680,pw5=1400,pw7=1050; |
|
| Back to top |
|
 |
|