reajs. why doesnt this script make a sound? >> The Archives >> FORUM lowesmall.shop
FORUM lowesmall.shop

FORUM lowesmall.shop



SearchSearch   Users   Registration   Entrance
Today: 27.07.2025 - 11:32:53
Pages:  1  

reajs. why doesnt this script make a sound?

Advertising


AuthorMessage

bmwm3n528

main user




Statistics:
Messages: 22
Registration: 04.28.2002

reajs. why doesnt this script make a sound? 

---------------------
Trevor Ely '13 JSW TDI '05 Elise '96 328is '91 318is '90 325is '89 325is '88 535is '95 M-Sport 540i (1 of 200) '85 190E 2.3-16 ECE '70 Honda N600 '00 A4 1.8TQMS
Message # 1 14.02.24 - 02:39:08
RE: reajs. why doesnt this script make a sound?

Andy W

main user




Statistics:
Messages: 785
Registration: 09.25.2002

hi, sometimes when i am generating tones with reajs, i do something and then my counters stop counting and where before i was getting sound, suddenly i do not. Can anyone tell me why the x counter is not moving in this code, and why the y is not doing anything either? Sometimes i end up with code that just doesn't move, and i go through it one line at a time and check for mistakes and check for logic, and everything checks out. can someone tell me why this doesn't work? it was working a minute ago, and because the reajs editor is just really really hard to manage code with, i forgot what change i made that caused "ReaJS Freeze" This happens to me a lot, when my variables dont move. often it is because of a missing semicolon. but other times, i can't find the problem. Code:

---------------------
Message # 2 14.02.24 - 02:49:42
RE: reajs. why doesnt this script make a sound?

Mitch P.

main user




Statistics:
Messages: 2,586
Registration: 04.11.2002

For an effect like this that is supposed to generate audio without incoming MIDI events or audio, you will need to have the track on which the effect is, on record enable. (And maybe the input monitoring needs to be on too.) edit : There appears to be some other problem in the code too, though. It is producing wildly loud output samples. Those sound like there's just some clicking going on. The x variable changes values as expected as long as I have the track on record enable. edit2 : Somewhat improved version : Code:

---------------------
Current ride: '06X54.8is, TiSi/Blk '03M5 (10kmi garage queen!), CB/Caramel Previous rides: 2001 540ia sport, Dinan StII suspension 2000 328ia sport 1996 Dinan 3
Message # 3 14.02.24 - 02:53:19
RE: reajs. why doesnt this script make a sound?

EclipsorGreen

main user




Statistics:
Messages: 277
Registration: 04.22.2003

edit: thanks something i can't understand right now is why when i adjust the frequency, the tone changes in big blocks instead of continuously. especially if the calculations are supposed to be happening at sample rate. can you try playing with the freq a bit and offer a theory why the intervals are stepped in tone and not continuous? here is the sound i am talking about. in the higher frequencies, you only get like 5 tones to describe thousands of values while adjusting the frequency:

---------------------
Message # 4 14.02.24 - 03:02:37
RE: reajs. why doesnt this script make a sound?

jimmyg50

main user




Statistics:
Messages: 11
Registration: 10.12.2003

I looked at your saw generator using the oscilloscope, and i noticed that the last step in the saw was a little attenuated. same with the first step. so I created a cheat whereby the steps in the saw wave are noted, and created a little logic for attenuating the last and first step in each saw wave. still the frequency changes sound chunky. Give it a shot. one thing i am mortified about is that high frequency stuff can't really be described by only a few samples. scary stuff because like how does any digital audio sound realistic? I guess high frequency stuff in digital audio is really low frequency if you consider how few samples are being used to describe that stuff. Code:

---------------------
Jimmy
Message # 5 14.02.24 - 03:13:15
RE: reajs. why doesnt this script make a sound?

99M3

main user




Statistics:
Messages: 570
Registration: 04.19.2001

i guess i need to cave and study your library. i thought i would be able to learn more of what i dont know from a brute force method of inventing the wheel from scratch but now im curious what blep means ;) i do find it more difficult to reverse engineer other ppls code though.

---------------------
-Luke 1994 6-speed Supra BPU+FMIC+aquamist 1991 Galant VR-4 Turbo-AWD daily driver 2002 Audi S4 Avant
Message # 6 14.02.24 - 03:18:22
RE: reajs. why doesnt this script make a sound?

forrest

main user




Statistics:
Messages: 46
Registration: 03.02.2001

how do you band limit a step? is it sort of when you cause each step to advance at a separate rate? (assuming step means increment of a computational waveform)

---------------------
Message # 7 14.02.24 - 03:27:11
RE: reajs. why doesnt this script make a sound?

auto_pilot

main user




Statistics:
Messages: 2,525
Registration: 10.09.2003

In this case a step is the discontinuity in the waveform, e.g. the reset point of a saw, or when a square wave goes from high to low, or when a triangle changes direction, etc. If you create perfectly band-limited square wave by adding up sines (i.e. the Fourier series), then you will notice ringing ("bumps") around the discontinuities. The ringing is most present immediately around the discontinuity, further away from it quickly decreases. It turns out that only the ringing immediately around the discontinuity is important. So to construct a band-limited step you have to make sure that the ringing is there. A polyBLEP is a function that approximates this ringing.

---------------------
"True peace is not merly the absence of tension: it is the presence of justice..."
Message # 8 14.02.24 - 03:34:38
RE: reajs. why doesnt this script make a sound?
Saving Private Ryan : Previous topic
Pages:  1  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants