The Complete Ardcore Sketch Library

Discussion and Support for our Atmospheric Modification Devices.

Moderators: Kent, loss1234, Kent, loss1234

User avatar
FSK1138
Common Wiggler
Posts: 142
Joined: Mon Jan 30, 2012 7:15 pm
Location: MONTREAL

Post by FSK1138 »

"
The expander has the reset button which is handy so you can switch modes without turning the whole modular off and on again. .."

-------------------------------------

you don't have to turn the module off to load a new sketch.?(switch modes)

i often just leave the usb cable plugged in
but unplug the cables
since most sketches use the ports in different ways
User avatar
eclectics
Wiggling with Experience
Posts: 374
Joined: Sat Oct 05, 2013 10:32 am
Location: Melbourne

Post by eclectics »

I was thinking more of the multi-sketch model where you have several sketches in 1 loaded and it decides which to load on power on/reset based on knob positions.

That way you don't need the computer around.
Klangtueftler
Learning to Wiggle
Posts: 8
Joined: Sun Jul 24, 2016 12:34 am
Location: Germany
Contact:

Post by Klangtueftler »

Is this list still updated ?
User avatar
JoeFuture
Wiggling with Experience
Posts: 276
Joined: Mon May 23, 2016 3:57 pm
Location: the void

Post by JoeFuture »

Anyone have code examples of using PWM outputs on pins 11 and 13 of the expander?
User avatar
AsceticUnderground
Common Wiggler
Posts: 133
Joined: Sun Nov 25, 2012 9:22 pm
Location: London
Contact:

Post by AsceticUnderground »

Anyone have code examples of using PWM outputs on pins 11 and 13 of the expander?
There is a very brief section on writing an analog value to pin 11 in my tutorial, and bitbanging 13 for pwm

https://github.com/twhiston/as[/quote]ct-ardcore/blob/master/ASCTard000_tutorials/Ardcore_expander_tutorial/Ardcore_expander_tutorial.ino
User avatar
flx
Super Deluxe Wiggler
Posts: 1954
Joined: Wed Oct 05, 2011 4:22 pm
Location: Köln, Germany
Contact:

Post by flx »

I just created my first Ardcore sketch by modifying 20 Objects' AC07_Sequencer.

I added CV control over step selection and pitch and a random trigger output, of which the chance can be controlled with A1 between 25% and 75%.

Should I upload this somewhere? Do I have to find a new name for the sketch? Does anybody care that I changed their code? I'm new to this open-source collaborative software thing, but I wrote comments in the code wherever I changed something.
User avatar
AsceticUnderground
Common Wiggler
Posts: 133
Joined: Sun Nov 25, 2012 9:22 pm
Location: London
Contact:

Post by AsceticUnderground »

The best place to upload it would be to github, where you can keep a collection of your sketches and make them freely available to other people (like the main library from darwin, my sketches etc....), unless that change is a bugfix to something existing, then you would make a pull request to put it back in the original repo.

I would give it a unique id FLX01 or something, and generally no one cares about code changes, as a rule of thumb check the project itself for a licence file which should tell you what you can do and what restrictions there are, but ardcore sketches are most distributed without any strict rules and are freely modifiable.

Welcome to the world of open source software :D
User avatar
flx
Super Deluxe Wiggler
Posts: 1954
Joined: Wed Oct 05, 2011 4:22 pm
Location: Köln, Germany
Contact:

Post by flx »

AsceticUnderground wrote: Welcome to the world of open source software :D
Thanks!

I created a Github account and put the sketch here:
https://github.com/TuesdayNightMachines/Ardcore/
User avatar
Matos
Modular masturbator
Posts: 3783
Joined: Tue Jul 05, 2011 4:03 am

Post by Matos »

Cool. Thanks for the sketch.
User avatar
flx
Super Deluxe Wiggler
Posts: 1954
Joined: Wed Oct 05, 2011 4:22 pm
Location: Köln, Germany
Contact:

Post by flx »

Here's what it does:

8 Step Sequencer

Knob A0: Pitch to be recorded at the current step (works as offset when used with Analog In 1)
Knob A1: Current step selection (works as offset when used with Analog In 2)

Analog In A2: CV control over the current step's pitch
Analog In A3: CV control over step selection

Digital Out D0: Trigger on step output
Digital Out D1: Random chance trigger between 25% - 75% (depending on A1 knob position)

Clock In: External clock input
Analog Out: 8-bit output


The useful thing here is that the "Analog In" knobs act as attenuators for incoming CV, so you can basically set a range of steps, e.g. 3-5, which change a certain amount depending on the CV signals (the chaotic Snazzy FX modules work great as CV sources), while the other steps remain the same. This can make a sequence sound like its repeating, while it's also changing a little here and there, keeping things interesting.

The chance-based triggers can then set accents, or play a drum sound, like in the first of those two examples (which have a lot going on):



User avatar
flx
Super Deluxe Wiggler
Posts: 1954
Joined: Wed Oct 05, 2011 4:22 pm
Location: Köln, Germany
Contact:

Post by flx »

Added two new Sketches to my Github:
https://github.com/TuesdayNightMachines/Ardcore

Those were coded from scratch using 20 Objects' template.


Dirty Mirror:
A wavefolder and wave-combiner/mixer/multiplier for CV and audio, with a clock divider output. Check it's Analog Out on a scope.

Knob A0: Threshold above which Wave 1 will be output, below will be the inverted Wave 2
Knob A1: Clock divider value (starts off, then clockwise = higher division, i.e. slower clock)
Knob A2: Attenuator for Wave 1 input
Analog In 2: Input for Wave 1 (unipolar, scaled to 0-5V, input above 5V will fold over)
Knob A3: Attenuator for Wave 2 input
Analog In 3: Input for Wave 2 (unipolar, scaled to 0-5V, input above 5V will fold over)
Digital Out D0: Trigger on Wave 1 input above Threshold, divided Clock Divider
Digital Out D1: Trigger on Wave 2 input above Threshold, divided Clock Divider
Clock In: Cycle through modes: combiner (A2 above threshold, inverted A3 below), mixer (A2-A3), multiplier (A2*A3) and silence (patch D0 to Clock In for rhythmic fun)
Analog Out: Waveform output (unipolar, 0-5V)


Bit Beats Groovebox:
An 8-step trigger sequencer and a monophonic, lo-fi chiptune groovebox with three drum sounds and three synth waveforms.

Knob A0: Pattern selection (0-255 converted to binary, so patterns between "0,0,0,0,0,0,0,0" and "1,1,1,1,1,1,1,1")
Knob A1: Synth waveform selection (Saw, Tri, Saw+Squ, Silence)
Analog In A2: Drum waveform selection, can be CV-controlled (Kick, Snare, Percussion, Silence)
Analog In A3: Synth wave pitch, can be CV-controlled (not 1V/oct)
Digital Out D0: Pattern output (trigger on every 1 bit)
Digital Out D1: Inverted pattern output (trigger on every 0 bit)
Clock In: External clock input
Analog Out: Unipolar Audio Output



I'll post some videos soon, especially for the Dirty Mirror waveshaper, which might not be too easy to understand.
User avatar
flx
Super Deluxe Wiggler
Posts: 1954
Joined: Wed Oct 05, 2011 4:22 pm
Location: Köln, Germany
Contact:

Post by flx »

flx wrote: https://github.com/TuesdayNightMachines/Ardcore

Dirty Mirror:
A wavefolder and wave-combiner/mixer/multiplier for CV and audio, with a clock divider output. Check it's Analog Out on a scope.

Knob A0: Threshold above which Wave 1 will be output, below will be the inverted Wave 2
Knob A1: Clock divider value (starts off, then clockwise = higher division, i.e. slower clock)
Knob A2: Attenuator for Wave 1 input
Analog In 2: Input for Wave 1 (unipolar, scaled to 0-5V, input above 5V will fold over)
Knob A3: Attenuator for Wave 2 input
Analog In 3: Input for Wave 2 (unipolar, scaled to 0-5V, input above 5V will fold over)
Digital Out D0: Trigger on Wave 1 input above Threshold, divided Clock Divider
Digital Out D1: Trigger on Wave 2 input above Threshold, divided Clock Divider
Clock In: Cycle through modes: combiner (A2 above threshold, inverted A3 below), mixer (A2-A3), multiplier (A2*A3) and silence (patch D0 to Clock In for rhythmic fun)
Analog Out: Waveform output (unipolar, 0-5V)
Here's a quick video demo for the "Dirty Mirror" Ardcore Sketch.

[video][/video]
User avatar
Lanark
Learning to Wiggle
Posts: 20
Joined: Tue Oct 06, 2015 3:35 pm
Location: UK

Re: The Complete Ardcore Sketch Library

Post by Lanark »

Anyone use Arduino IDE on Mac? Just wondering what the latest working version is for uploading Ardcore sketches, I know that from around 3 years ago the language changed a bit so those versions weren’t working well with the module. Have just built two but the sketches don’t work properly using the latest IDE
User avatar
mmake
Learning to Wiggle
Posts: 11
Joined: Fri Apr 12, 2013 10:02 am
Location: Tampere, Finland
Contact:

Re: The Complete Ardcore Sketch Library

Post by mmake »

I think i have. Maybe its possible to just run a older version of the IDE? Just download a older version i guess if the hardware doesn’t support new ones 🤔
loss1234
Wiggling with Experience
Posts: 305
Joined: Sat Sep 12, 2009 11:29 pm

Re: The Complete Ardcore Sketch Library

Post by loss1234 »

it should still work without issue (i still load sketches and make sketches from time to time)
I know there are a few sketches which may have an issue but overall It still works without issue.

I just got a new Mac M1 and I will try to upload some sketches soon. I do know that I generally keep a few different versions of arduino around just in case one of them throws an error on one verison (this is not just true for the ardcore)
Post Reply

Return to “SNAZZY FX”