electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
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 
 Forum index » DIY Hardware and Software » ChucK programming language
ChucK Guitar Effects
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [14 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Wed Jun 17, 2009 3:14 am    Post subject: ChucK Guitar Effects
Subject description: Four examples and request for more
Reply with quote  Mark this post and the followings unread

A while back we had a thread about guitar effects programs for ChucK. Kijjaz and I wrote some code, attached, that does freaky things with guitar input and makes really kewl sounds.

I'm posting because I'd like to start doing some guitar jams on The ChucK Show using such guitar effects programs, and I was wondering if anyone would like to take a shot at creating some more. Or if you're busy or don't have a guitar, I wonder if you could suggest some possibilities for me to convert into code.

Please let me know what your thoughts are on this topic, I'm eager to develop a collection of really kewl effects for the show. Thanks.

Les


Primal2.ck
 Description:

Download
 Filename:  Primal2.ck
 Filesize:  5.07 KB
 Downloaded:  825 Time(s)


Kijjaz_Trancey1.ck
 Description:

Download
 Filename:  Kijjaz_Trancey1.ck
 Filesize:  1.65 KB
 Downloaded:  751 Time(s)


Kijjaz_Psychedellic1.ck
 Description:

Download
 Filename:  Kijjaz_Psychedellic1.ck
 Filesize:  1.05 KB
 Downloaded:  734 Time(s)


Kijjaz_Evolver.ck
 Description:

Download
 Filename:  Kijjaz_Evolver.ck
 Filesize:  946 Bytes
 Downloaded:  754 Time(s)


_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
wmonk



Joined: Sep 15, 2008
Posts: 528
Location: Enschede, the Netherlands
Audio files: 15

PostPosted: Wed Jun 17, 2009 8:22 am    Post subject: Reply with quote  Mark this post and the followings unread

Cool idea Inventor! Perhaps you can send me some guitar files to use the effects on. That way I can do some effects, without destroying my soundcard by plugging my guitar into the mic input Wink
The effect of the effects would be clearer when using the same guitar for programming.
Back to top
View user's profile Send private message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Wed Jun 17, 2009 8:26 am    Post subject: Reply with quote  Mark this post and the followings unread

wmonk wrote:
Cool idea Inventor! Perhaps you can send me some guitar files to use the effects on. That way I can do some effects, without destroying my soundcard by plugging my guitar into the mic input Wink
The effect of the effects would be clearer when using the same guitar for programming.


Wow Thomas, thanks for giving it a shot! I will record some guitar for you in a wav file using ChucK so you can read it in with WvIn or whatever it's called, I forget. I have found that ChucK will not read in just any wav file but it will read in it's own files as far as I know. I'll post soon.

Les

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Wed Jun 17, 2009 9:27 am    Post subject: Reply with quote  Mark this post and the followings unread

wmonk,

Here is a file for your testing purposes. Thanks for giving this a try.

Les


wmonkGuitar.wav
 Description:
File for wmonk, just me talking and playing bad guitar

Download
 Filename:  wmonkGuitar.wav
 Filesize:  14.81 MB
 Downloaded:  1443 Time(s)


_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
wmonk



Joined: Sep 15, 2008
Posts: 528
Location: Enschede, the Netherlands
Audio files: 15

PostPosted: Wed Jun 17, 2009 2:19 pm    Post subject: Reply with quote  Mark this post and the followings unread

Well, got some things done. The UAna's are great for some effects. Now time to find my microphone to test it with my own voice. Will update this post soon! Smile
Back to top
View user's profile Send private message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Wed Jun 17, 2009 2:27 pm    Post subject: Reply with quote  Mark this post and the followings unread

Gee Thomas, I didn't know you could speak guitar! Haha, just kidding. I just got the idea to try summing the output of delayed versions of the input signal for an interesting effect. Maybe I'll get time to try it tonight.

Les

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
wmonk



Joined: Sep 15, 2008
Posts: 528
Location: Enschede, the Netherlands
Audio files: 15

PostPosted: Wed Jun 17, 2009 4:04 pm    Post subject: Reply with quote  Mark this post and the followings unread

The idea was to post a MP3 file here with the files demoing, but couldn't find the mic.
Number 001 is more or less a chorus like effect, it brightens the signal.
Number 002 sounds like a bitcrusher, I like it. I did some modifications to create the others:
Number 003 is dark, Number 4 is more like waterdrops.


20090617-guitareffect001.ck
 Description:

Download
 Filename:  20090617-guitareffect001.ck
 Filesize:  425 Bytes
 Downloaded:  704 Time(s)


20090617-guitareffect002.ck
 Description:

Download
 Filename:  20090617-guitareffect002.ck
 Filesize:  461 Bytes
 Downloaded:  657 Time(s)


20090617-guitareffect003.ck
 Description:

Download
 Filename:  20090617-guitareffect003.ck
 Filesize:  578 Bytes
 Downloaded:  702 Time(s)


20090617-guitareffect004.ck
 Description:

Download
 Filename:  20090617-guitareffect004.ck
 Filesize:  506 Bytes
 Downloaded:  681 Time(s)

Back to top
View user's profile Send private message
mrcold



Joined: Jun 18, 2009
Posts: 187
Location: USA
Audio files: 31

PostPosted: Thu Jun 18, 2009 10:42 am    Post subject: Reply with quote  Mark this post and the followings unread

hey..
these are awesome Smile
I am working on a project and stuff like this is EXACTLY what I need.
Back to top
View user's profile Send private message
Antimon



Joined: Jan 18, 2005
Posts: 4145
Location: Sweden
Audio files: 371
G2 patch files: 100

PostPosted: Thu Jun 18, 2009 11:09 am    Post subject: Reply with quote  Mark this post and the followings unread

There's always the old oscillator sync trick. Actually it wasn't as simple as I first thought, since I misinterpreted the sync input on SinOsc. Change the channels on adc and dac to your liking (I need to do it like this to get it to work with my Motu):

Code:
adc.chan(0) => blackhole;
SinOsc sinOsc => dac.chan(2);
sinOsc => dac.chan(3);
1 => sinOsc.sync;
400 => sinOsc.freq;
1 => sinOsc.gain;

0.0 => float max;
0.0 => float lastValue;

0.0 => float lfoPhase;
while(true) {
   1::samp => now;
   
   0.00001 +=> lfoPhase;
   if (lfoPhase > pi*2.0) {
      0 => lfoPhase;
   }
   Math.sin(lfoPhase)*1000.0 + 1200.0 => sinOsc.freq;
   
   adc.last() => float value;
   if (value > max) {
      value => max;
   }
   0.0001 -=> max;
   max => sinOsc.gain;
   
   if (lastValue < 0.0 && value >= 0.0) {
      0.0 => sinOsc.phase;
   }
   value => lastValue;
}

_________________
Antimon's Window
@soundcloud @Flattr home - you can't explain music
Back to top
View user's profile Send private message Visit poster's website
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Thu Jun 18, 2009 7:21 pm    Post subject: Reply with quote  Mark this post and the followings unread

I'm gonna check that out later, Stefan. I downloaded it and changed the ADC and DAC lines, now I just have to test it.

Here is a multiple delay line effect. It just has a chain of delays in series that are all summed into the dac, so it soundsoundsounds likeikeike thisisis sort of. Change the two parameters at the top of the file for different delay and number of delays.

Les


MultiDelayGuitarEffect1.ck
 Description:
multiple delay line effect

Download
 Filename:  MultiDelayGuitarEffect1.ck
 Filesize:  530 Bytes
 Downloaded:  613 Time(s)


_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Fri Jun 19, 2009 4:15 am    Post subject: Reply with quote  Mark this post and the followings unread

mrcold wrote:
hey..
these are awesome Smile
I am working on a project and stuff like this is EXACTLY what I need.


Welcome on board!

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Sat Jun 27, 2009 8:16 pm    Post subject: Reply with quote  Mark this post and the followings unread

i just entertained rob and jan and mrcold with the attached guitar synth. It's by kijjaz as posted earlier in this thread, but i added a delay line feedback loop which really makes it super psychedellic.. or should i say psychodellic, with an o! wow man.


Kijjaz_Psychedellic2.ck
 Description:
Kijjaz Psychedellic Guitar Synth

Download
 Filename:  Kijjaz_Psychedellic2.ck
 Filesize:  1.14 KB
 Downloaded:  467 Time(s)


_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Sun Jun 28, 2009 3:09 am    Post subject: Reply with quote  Mark this post and the followings unread

I got to thinking about that last posted code, KijjazPsychedelic2, while in chat and it occurred to me that I could create a hardware feedback loop instead of a software one. So I just moved the delay line to the output and now I'm waiting for morning so I can hook things up and jam.

You see, I have a special cable that runs from the eMac's headphones output to the guitar amp's CD player input. I just attenuate the signal in software and then a feedback loop will be established.

Guitar input will get sounded by the amp, and then the eMac's microphone will pick up the guitar and my voice, go all psychedelic on it, and send that back to the guitar amp. This process repeats so that many images of the sound are present at any one time.

What's so cool about this is that it will fill my living room with the psychedelic sounds instead of just being on the headphones as in the past.

I should be able to control the amp gain and the eMac volume to establish any desired level of effect. Wish me luck. If it works, I may do it on the ChucK show.

Les

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Tue Jun 30, 2009 9:28 am    Post subject: Reply with quote  Mark this post and the followings unread

I tried the experiment in the previous post and there was too much room noise in the feedback loop. The noise took over the signal so it didn't work right. What I did discover, however, is that the feedback loop, even in software is unnecessary. I made several guitar synths and went back to KijjazPsychedelic1.ck because the original was the best.

Then I modified it to receive input from my homemade little guitar mixer thingie. It puts the mic on one channel and the guitar on the other, amplifies them accordingly and sends them in on the left and right channels of the line in jack. I set the code up to psychedelically process the voice and pass the guitar through with only some software gain.

With this configuration I still get the star-sparkling woo woo noises in response to the voice, but the guitar comes through clean. Should be useful in the ChucK show...

Les


Kijjaz_Psychedellic5.ck
 Description:
Latest and best version of Kijjaz Psychedelic (for my use)

Download
 Filename:  Kijjaz_Psychedellic5.ck
 Filesize:  1.21 KB
 Downloaded:  453 Time(s)


_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [14 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 » ChucK programming language
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


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