electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks GalleryGallery 
 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
Shepard tones
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [22 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
chuckbeginner



Joined: May 26, 2008
Posts: 18
Location: Asheville NC

PostPosted: Sun Jun 22, 2008 8:34 am    Post subject: Shepard tones
Subject description: My first code post--feedback very much appreciated!
Reply with quote  Mark this post and the followings unread

Hello everyone.

I recently became interested in the phenomenon of Shepard tones, an audio illusion where it seems that a series of tones seems to 'rise' in an infinite loop, like the Roger Penrose/M.C. Escher staircases.

I'd imagine that other people have done this in CHuCK, but I would like to confirm that other listeners hear it 'right' (I think it achieves the desired effect, but I'm inclined to hear what I'm trying to convey) and I'd appreciate any suggestions on the code.


shepardtones_1.ck
 Description:

Download
 Filename:  shepardtones_1.ck
 Filesize:  434 Bytes
 Downloaded:  45 Time(s)

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



Joined: Oct 13, 2007
Posts: 1700
Location: Florida, USA
Audio files: 67

PostPosted: Sun Jun 22, 2008 9:51 am    Post subject: Reply with quote  Mark this post and the followings unread

Very interesting effect, it would be nice to use it in a song. The only "comment" I have on the code is that it need comments, haha.
_________________
For those about to ChucK, we salute you! - Ge Wang
Let's make noise for peace! - kijjaz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chuckbeginner



Joined: May 26, 2008
Posts: 18
Location: Asheville NC

PostPosted: Sun Jun 22, 2008 10:52 am    Post subject: Reply with quote  Mark this post and the followings unread

The basic idea is that at each 'step' of the staircase you have a combination of two (or more) tones an octave apart. The tones have different weights which change with each step. (I first heard Shepard tones on a random noise cassette a few years ago, though I didn't know what they were called until I read the book Godel, Escher, Bach. Wikipedia has a pretty good article on it, too.)
Back to top
View user's profile Send private message
ico



Joined: Jun 07, 2006
Posts: 12
Location: NL

PostPosted: Sun Jun 22, 2008 12:20 pm    Post subject: Reply with quote  Mark this post and the followings unread

chuckbeginner wrote:
though I didn't know what they were called until I read the book Godel, Escher, Bach.


I guess I missed that, I never made it past chapter seven...
Back to top
View user's profile Send private message
Inventor



Joined: Oct 13, 2007
Posts: 1700
Location: Florida, USA
Audio files: 67

PostPosted: Sun Jun 22, 2008 12:33 pm    Post subject: Reply with quote  Mark this post and the followings unread

Can we apply this concept to other musical things like chord progressions or scales? That would sound wicked-cool, to do a song that sounded like M C Escher's work. Not that I could play it yet, but I could probably ChucK it...
_________________
For those about to ChucK, we salute you! - Ge Wang
Let's make noise for peace! - kijjaz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ico



Joined: Jun 07, 2006
Posts: 12
Location: NL

PostPosted: Sun Jun 22, 2008 12:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

Inventor wrote:
Can we apply this concept to other musical things like chord progressions or scales? That would sound wicked-cool, to do a song that sounded like M C Escher's work. Not that I could play it yet, but I could probably ChucK it...


Well, the book is called "Godel, Escher Bach" for a good reason. Bach did it all. Fugas with the strucdture of eschers infinite stairs, details within details, shapes within shapes, it's all there Smile
Back to top
View user's profile Send private message
Inventor



Joined: Oct 13, 2007
Posts: 1700
Location: Florida, USA
Audio files: 67

PostPosted: Sun Jun 22, 2008 12:57 pm    Post subject: Reply with quote  Mark this post and the followings unread

Oh, i see said the blind man (me).
_________________
For those about to ChucK, we salute you! - Ge Wang
Let's make noise for peace! - kijjaz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 11970
Location: Netherlands, Enschede
Audio files: 28
G2 patch files: 295

PostPosted: Sun Jun 22, 2008 1:03 pm    Post subject: Reply with quote  Mark this post and the followings unread

Inventor wrote:
Oh, i see said the blind man (me).


And Bach was an inventor too Wink : http://en.wikipedia.org/wiki/Inventions_and_Sinfonias_(J._S._Bach)

_________________
Jan
Back to top
View user's profile Send private message Visit poster's website
Inventor



Joined: Oct 13, 2007
Posts: 1700
Location: Florida, USA
Audio files: 67

PostPosted: Sun Jun 22, 2008 1:25 pm    Post subject: Reply with quote  Mark this post and the followings unread

Very interesting, though the meaning escapes me.

I can understand a system in which we have notes separated by multiples of the 12th root of two, that double every 12 notes, sure. But why name them so funny?

A A# B C C# D D# E F F# G G# and back to A again. We should just use the first 12 letters of the alphabet. Why all the sharps/flats, and why skip two of them. This all seems highly illogical to me.

_________________
For those about to ChucK, we salute you! - Ge Wang
Let's make noise for peace! - kijjaz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 11970
Location: Netherlands, Enschede
Audio files: 28
G2 patch files: 295

PostPosted: Sun Jun 22, 2008 1:46 pm    Post subject: Reply with quote  Mark this post and the followings unread

Inventor wrote:
why


Well, you know ... there is some history involved ...

(the link drops you at a somewhat arbitrary spot in that history, but at a point that the letters of the alphabet could still be used in a "logical" way)

_________________
Jan
Back to top
View user's profile Send private message Visit poster's website
Flevo



Joined: Mar 10, 2008
Posts: 7
Location: Bussum

PostPosted: Sun Jun 22, 2008 1:50 pm    Post subject: Reply with quote  Mark this post and the followings unread

thats a long story. let say that first they only use the white notes on the keybords. later people realized the distance between notes didnt fit
if then they started again counting we wouldn thave these problems

nobody learns from history: do you know why al the keys of your pc keybord are mixed thisway? almost same problem.

there are a lot of examples of wrong choices................
Back to top
View user's profile Send private message
Flevo



Joined: Mar 10, 2008
Posts: 7
Location: Bussum

PostPosted: Sun Jun 22, 2008 1:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

funny, same answer same time
Back to top
View user's profile Send private message
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 11970
Location: Netherlands, Enschede
Audio files: 28
G2 patch files: 295

PostPosted: Sun Jun 22, 2008 1:54 pm    Post subject: Reply with quote  Mark this post and the followings unread

Must be true then Wink
_________________
Jan
Back to top
View user's profile Send private message Visit poster's website
Flevo



Joined: Mar 10, 2008
Posts: 7
Location: Bussum

PostPosted: Sun Jun 22, 2008 1:59 pm    Post subject: Reply with quote  Mark this post and the followings unread

yours is the scientistic way
Back to top
View user's profile Send private message
Flevo



Joined: Mar 10, 2008
Posts: 7
Location: Bussum

PostPosted: Sun Jun 22, 2008 2:01 pm    Post subject: Reply with quote  Mark this post and the followings unread

i forgot to ask: the ~~.ck patch is not usable in G2 isn't it?
Back to top
View user's profile Send private message
Inventor



Joined: Oct 13, 2007
Posts: 1700
Location: Florida, USA
Audio files: 67

PostPosted: Sun Jun 22, 2008 2:04 pm    Post subject: Reply with quote  Mark this post and the followings unread

Aha! I thought it was a mix-up of some sort. So why haven't we had a revolution in music, a redefinition of things properly. Or is it time for that now?
_________________
For those about to ChucK, we salute you! - Ge Wang
Let's make noise for peace! - kijjaz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 11970
Location: Netherlands, Enschede
Audio files: 28
G2 patch files: 295

PostPosted: Sun Jun 22, 2008 2:05 pm    Post subject: Reply with quote  Mark this post and the followings unread

Flevo wrote:
i forgot to ask: the ~~.ck patch is not usable in G2 isn't it?


nope, see here for more info.

_________________
Jan
Back to top
View user's profile Send private message Visit poster's website
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 11970
Location: Netherlands, Enschede
Audio files: 28
G2 patch files: 295

PostPosted: Sun Jun 22, 2008 2:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

Inventor wrote:
So why haven't we had a revolution in music, a redefinition of things properly.


Revolution is the cause of the problem actually Shocked

_________________
Jan
Back to top
View user's profile Send private message Visit poster's website
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 11970
Location: Netherlands, Enschede
Audio files: 28
G2 patch files: 295

PostPosted: Sun Jun 22, 2008 2:15 pm    Post subject: Reply with quote  Mark this post and the followings unread

There are a lot of interesting experiments with musical scales recently, one of the causes being that computers make experimentation so much easier nowadays. Carlo (seraph) tries to educate us in this ... try a search on this forum on the keyword "scale" with author "seraph".
_________________
Jan
Back to top
View user's profile Send private message Visit poster's website
Inventor



Joined: Oct 13, 2007
Posts: 1700
Location: Florida, USA
Audio files: 67

PostPosted: Sun Jun 22, 2008 2:21 pm    Post subject: Reply with quote  Mark this post and the followings unread

Some college friends of mine got latched onto the phrase: "revolution begins in the mind". I heard it over and over again:

"revolution begins in the mind"
"revolution begins in the mind"
"revolution begins in the mind"

So I said: "Everything begins in the mind, what's so special about revolution?"

And I never heard it again. I guess that was the end of the revolution.

_________________
For those about to ChucK, we salute you! - Ge Wang
Let's make noise for peace! - kijjaz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chuckbeginner



Joined: May 26, 2008
Posts: 18
Location: Asheville NC

PostPosted: Sun Jun 22, 2008 3:47 pm    Post subject: Reply with quote  Mark this post and the followings unread

Blue Hell wrote:
Inventor wrote:
Oh, i see said the blind man (me).


And Bach was an inventor too Wink : http://en.wikipedia.org/wiki/Inventions_and_Sinfonias_(J._S._Bach)


I've always loved W. Carlos' album--I think it was 'Switched on Bach', featuring electronic interpretations of many of this pieces. My memory is a little hazy but I think my favorite was Two-Part Invention in G-Minor.

The problem I'm having with this program (I can probably figure it out if I go to pen and paper) is the progression of weights. If at any point the gain on other input gets to 0, the effect is ruined because that 'step' is clearly above/below the others around it. I wanted to just do the straight CDEFGAB scale I've had to add an extra 'wrong' tone in order to make the constant gain factor divisible by 8 (i.e. rational).

The approach reminds me of linear algebra, with the notes as vectors and the gains as scalars. I'll try some other approaches and post the results.
Back to top
View user's profile Send private message
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 11970
Location: Netherlands, Enschede
Audio files: 28
G2 patch files: 295

PostPosted: Sun Jun 22, 2008 5:39 pm    Post subject: Reply with quote  Mark this post and the followings unread

chuckbeginner wrote:
I've always loved W. Carlos' album--I think it was 'Switched on Bach', featuring electronic interpretations of many of this pieces.


Also interesting, because it uses very different scales is "The beauty in the beast".

Quote:
The problem I'm having with this program (I can probably figure it out if I go to pen and paper) is the progression of weights. If at any point the gain on other input gets to 0, the effect is ruined because that 'step' is clearly above/below the others around it.


Using three tone generators will work better than two, as the silencing of one tone will be masked better.


Quote:
The approach reminds me of linear algebra, with the notes as vectors and the gains as scalars. I'll try some other approaches and post the results.


Same here, except that I'd consider a tone volume pair to be a vector in 2-space. You could use vector rotation probably to work it out in software.

_________________
Jan
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: Kassen
Page 1 of 1 [22 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
Top Selling Products! CLICK HERE!

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, 2004, 2005, 2006 and 2007 by electro-music.com