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
<on air> PHANToS presents: The Monstrous Modulator (Modulator ESP's 2010/2011 halloween performances mix)
Please visit the chat
 Forum index » Instruments and Equipment » MAX/MSP - Pd
Triangle,pulse and sawtooth waves in Max using cycle~ ??
Post new topic   Reply to topic Moderators: jksuperstar
Page 1 of 1 [5 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
mubase



Joined: Mar 24, 2011
Posts: 110
Location: London UK
Audio files: 5

PostPosted: Thu Oct 20, 2011 6:27 am    Post subject: Triangle,pulse and sawtooth waves in Max using cycle~ ??
Subject description: How can I create other waveshapes in Max using cycle and some maths??
Reply with quote  Mark this post and the followings unread

Hi all. I am currently doing a project for University involving making a Monosynth using Max/Msp. The synth must have at least 4 waveshapes BUT I'm not allowed to use Phasor~, Tri~, Rect~ or any of those. Instead I must use Cycle~ with a link to a buffer through some sort of mathematical function... I understand the process of creating a sine wave but not how to incorporate other waveshapes into the buffer lookup table... Does anyone have any experience in this and if so, could you give me a few pointers?? Any help appreciated, Thanks,
Steve.



Sounds:
http://soundcloud.com/gpud
Back to top
View user's profile Send private message
EdisonRex
Site Admin


Joined: Mar 07, 2007
Posts: 4529
Location: London, UK
Audio files: 169

PostPosted: Fri Oct 21, 2011 1:40 am    Post subject: Reply with quote  Mark this post and the followings unread

I'm unclear what the assignment is. Are you supposed to use a wavetable, in which you've generated a single cycle/period of a waveform via a function?

If so, that's not that hard.

http://mathworld.wolfram.com/SquareWave.html
http://mathworld.wolfram.com/TriangleWave.html
http://mathworld.wolfram.com/SawtoothWave.html

without telling you all the answers, it's pretty easy to make these three waveforms in a buffer.

_________________
Garret: It's so retro.
EGM: What does retro mean to you?
Parker: Like, old and outdated.


Home,My Studio,and another view
Back to top
View user's profile Send private message Visit poster's website
mubase



Joined: Mar 24, 2011
Posts: 110
Location: London UK
Audio files: 5

PostPosted: Sat Oct 22, 2011 2:49 am    Post subject: Waves
Subject description: Wavetable.
Reply with quote  Mark this post and the followings unread

Hi! Yes thats it. Using a cycle~ to create a wavetable buffer containing a single cycle of saw sqr tri and sine ( sine is simple.) I've managed the triangle wave now using : expr 2/3.14259 *asin (sin(2*3.14159 *$f1)). This gives me a nice triangle wave. The $f1 is an inlet from a number box containing the ( /511) for floating point division.
I will have a look at the links below. Thanks!!
Back to top
View user's profile Send private message
mubase



Joined: Mar 24, 2011
Posts: 110
Location: London UK
Audio files: 5

PostPosted: Sun Oct 23, 2011 2:11 am    Post subject: bloody wavetables!! still baffled.... Reply with quote  Mark this post and the followings unread

Ok Mr Edison, Sawtooth is odd and even harmonics with reciprocals of the amplitude.... Using this knowledge I supplied the expr below to the buffer.
I can't get past using more than 9 permutations of the wave before and error occurs ( the expr box goes grey and there are no ins or outs...) . Is this the best way of doing it? I though I could use another uzi firing bangs into a number being another variable ($f2)for the harmonic multiplication and having the amplitude coming in as $f3 but i'm not sure how to go about it.. Its a tricky one. I don't like to make excuses but I am new to Max/msp....


saws.jpg
 Description:
Max/MSP patch of attempt at a sawtooth buffer... Long way of working... ???
 Filesize:  51.77 KB
 Viewed:  191 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

saws.jpg


Back to top
View user's profile Send private message
EdisonRex
Site Admin


Joined: Mar 07, 2007
Posts: 4529
Location: London, UK
Audio files: 169

PostPosted: Sun Oct 23, 2011 1:00 pm    Post subject: Reply with quote  Mark this post and the followings unread

Mathematically the sawtooth is a combination of all harmonics. Practically speaking you can't really produce it the way you're going about it unless you're into calling functions recursively.

But consider the actual resulting waveform. It's linear, as are square waves (or any pulse of which a square is a 50% duty cycle pulse), and a triangle which is also linear.

You only need to generate the right shape into the buffer and these are basic waveforms.

_________________
Garret: It's so retro.
EGM: What does retro mean to you?
Parker: Like, old and outdated.


Home,My Studio,and another view
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
Page 1 of 1 [5 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » Instruments and Equipment » MAX/MSP - Pd
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
e-m mkii

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