Ariane Soft PPL2 Pocket Programming DataMite
  #1  
Old 02-18-2009, 02:45 PM
Nicknack Nicknack is offline
Senior Member
 
Join Date: Nov 2006
Location: Germany
Posts: 527
Default crazy sine waves

mike's thread reminds me of an old code lying here around. It loads a simple sine wave and alter its frequency over time. you can stop the sound with space.

@kornalius: please include in the new manual two hints: setloop comes after playsound and s_shut isn't necessary
Attached Files
File Type: zip sine-wave.zip (1.1 KB, 160 views)

Last edited by Nicknack; 02-18-2009 at 03:05 PM.
Reply With Quote
  #2  
Old 02-18-2009, 03:02 PM
Mike Halliday Mike Halliday is offline
Senior Member
 
Join Date: Sep 2007
Location: Warrington, United Kingdom
Posts: 821
Send a message via Skype™ to Mike Halliday
Default

Hee hee, thats pretty good. Sounds very spacey!

M.
Reply With Quote
  #3  
Old 02-18-2009, 06:22 PM
Nicknack Nicknack is offline
Senior Member
 
Join Date: Nov 2006
Location: Germany
Posts: 527
Default

on pc you can get sound even faster with our loved beep:
Code:
#declare Beep kernel32.dll Beep 2 1


proc main

 str$="392,250,392,375,330,125,330,250,392,250,392,375,294,125,294,250,330,250,349,250,392,250,440,250,494,250,392,750,392,250,392,375,330,125,330,250,392,250,392,375,294,125,294,250,587,250,554,250,587,250,659,250,404,250,587,750,392,250,659,375,659,125,587,250,523,250,523,375,494,125,494,250,523,250,587,250,494,250,440,250,392,250,523,750,523,250,523,375,440,125,440,250,523,250,440,250,392,125,392,250,392,250,440,250,523,250,392,250,587,250,523,750,0,0";
 STRTOARRAY(str$,",",&a$);


 while(x$<amax(a$,0)-1)
  beep(int(a$[x$]),int(a$[x$+1]));
  delay(100);
  x$+=2;
 end;


end;
Reply With Quote
  #4  
Old 02-18-2009, 07:10 PM
Leginus Leginus is offline
Senior Member
 
Join Date: Mar 2008
Location: Chesterfield, Derbyshire, UK
Posts: 143
Default

Nice idea. I like it.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:50 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) ArianeSoft Inc.
Copyright © 2009 www.ppl-lang.com - All rights reserved
Web Design by BR Web Consulting Ltd