For sound manipulation I am reading a tutorial about John Clements' rsound package on PLaneT. In the rsound tutorial, it says to try
(require (planet "main.rkt" ("clements" "rsound.plt" 1 10)))
(rsound-play ding)
but every time I try this, DrRacket crashes. However, (rsound-read path) does not cause DrRacket to crash.
Anybody know how to fix this?
Have you tried the new version?
(require (planet clements/rsound:2:12))
http://planet.racket-lang.org/package-source/clements/rsound.plt/2/12/planet-docs/rsound/index.html
Related
I've scored the internet for almost an hour, but I can't find the actual github for readline, nor is it in node_modules. I hear that some are in binary, like events.js, but I found a repo for it. I'm trying to read through readline and learn how it works but I cannot find it. Does anyone know where it is?
You can find it in the libs-directory on the official github-repo:
https://github.com/nodejs/node/blob/master/lib/readline.js
Aite, [first poster here, pls don't bash]
So, I'm using the sound library, which I of course remembered to import, and works just fine, proof being given by the fact that all the other functions I used work as expected and give no problems neither in editor nor in execution.
Except, of course, for this little bugger of a pause() function, which I wrote as per below using no different a syntax from all the other functions, only to find out Processing isn't very keen on accepting its existence.
Problem shows both using 3.3.6 and 3.5.
Oh, and also, apparently isPlaying() returns an int, what's up with that?
If, as I'd suspect, that single line below won't be enough code to couple with the info to get to the bottom of it, here's a Dropbox link to the code (since it uses a bunch of files) so you can test it yourself.
It kinda won't work if you try to run it as is tho because it messes up when trying to load all the songs (in the last line of setup), yeah I kinda need some help with that too... works fine if you only load the first one tho!
https://www.dropbox.com/sh/di7mwit0w2l4513/AABipGDAdoKx277f8Hg_ZfhDa?dl=0
(Please, don't expect clear, extensively commented coding. I started working on this way before I learnt that was a thing. Deeply sorry. Of course, you can ask away about anything baffling you)
What did I try, er, writing it well???
I used .play(), .stop(), the volume ones, and they all, as per stated, work fine.
import processing.sound.*;
SoundFile[] songs= new SoundFile[1];
void setup(){
songs[0]=new SoundFile(this,"Small Bump.mp3");
songs[0].play();
}
void draw(){
}
void keyPressed(){
if (songs[0].isPlaying()==1)songs[0].pause();
}
When I copy your code into my Processing editor, I get a couple errors:
songs[0]="Small Bump.mp3";
The sounds array holds instances of SoundFile, but you're trying to store a String value here. Maybe you're looking for the SoundFile constructor?
if (songs[0].isPlaying()==1)
The isPlaying() function returns a boolean value, but you're comparing it to an int value.
songs[i].pause();
You haven't declared this i variable anywhere. Probably meant for this to be a 0.
If I fix all of these errors, then your code compiles fine.
You might want to take a look at the reference for the Sound library here.
The Sound library I had installed was 1.3.2, or something of the likes.
All the references I'd read were for 2.0+.
Having updated that through the "add library" menu, all was solved.
I know this has got to be something stupid as it use to work...
We have an app that works great in V4.2.0.4... some time ago (year or so) we started playing in the nightly builds and seeing how well our apps work under the HTML5 runtime. After much playing around an a few coding changes, we got there. Still some differences we're trying to work through, but all in all we got it working. The nightly build I was using was from the last one in 2011.
So with all the improvements that have come through, we thought we'd try the newest and see if some of the things we were trying to work around have been fixed. After upgrading, it's looking good until we create the solo version. Once we create the solo when we compile it, we get tons of redefining errors and the solo version also doesn't load at all, I'm guessing the redefining errors are causing problems.
Thinking since it's the new nightly build thats the issue, I go back to the previous version that we had that was working for us. But the issue continues to happen... I don't know how it's possible when our specific code didn't change.
If we make a coding change, even adding a space somewhere, it will compile without the redefining errors again until we create the solo, then they are back.
I'm at a complete loss. We didn't make code changes on our end so if nothing else the version we were using for the past year should still at least preform as before? What am I missing or being dumb about? Any ideas?
Sorry can't really do any code snippit as it's on a whole application type thing.
Here are a few of the errors.. all point to LFCdhtml-debug.js (line 698)
ERROR:
Redefining $lzc$class__mvd from () to () (an empty string)
LFCdhtml-debug.js (line 698)
ERROR:
Redefining $lzc$class__mve from () to () (an empty string)
LFCdhtml-debug.js (line 698)
ERROR:
Redefining $lzc$class__mw8 from () to () (an empty string)
LFCdhtml-debug.js (line 698)
ERROR:
Redefining $lzc$class__mw9 from () to () (an empty string)
LFCdhtml-debug.js (line 698)
I use the developer console to create the solo. Is the command line tool better? Haven't had a chance to use it.
I will try the lzt=clearcache and see if it helps.
Thanks for the help so far!
I am searching for some help with JSR-82. I have searched for a long time, and even had my project supervisor at uni helping me out, and so far, I have had no luck.
My Problem...
I have a project whereby I simply need to scan for Bluetooth Devices
I have not yet been able to get my Bluetooth device scanning. I am using Eclipse IDE in CentOS 5.5
and am trying to use Bluecove.
I have downloaded "bluecove-gpl-2.1.0.jar" and added it to my Eclipse Build Path and the code i am using is sample code provided by BlueCove (RemoteDeviceDiscovery Found here: http://bluecove.org/bluecove/apidocs/overview-summary.html#DeviceDiscovery).
Before i can even compile, javax.Bluetooth.*; is underlined suggesting it cannot find it - Now as far as i am aware, this should be within the bluecove jar file i mentioned previously.
How on earth do I get this thing working? Ive tried using JSR82.com but that wasnt much help at all
If any one has the time to assist me, you would be concidered a god! haha
thanks
Ryan
With bluecove on linux you need to provide the bluecove.jar and bluecove-gpl.jar. http://code.google.com/p/bluecove/wiki/Documentation
you will be needing 4 jar files: bluecove.jar,bluecove-emu.jar,electricblue.jar, javabluetooth.jar
however my code based on jsr82 implimentation did not work on samsung mobiles.... it is said that it does not support jsr82 stack. if anyone has idea on this share..
TVirtualTreeview is pretty much awesome, but many times when I close an window referenced by a DLL in my project that has a TVirtualTreeview in it I get the NTWaitForMultipleObjects error.
The problem is somewhere deep in TVirtualTreeview and other guys in the office have tried lots of stuff to fix it, I was just wondering if anyone else has had a similar issue in Delphi 7.
Or if it's fixed in 2009, because we've got that and are planning on upgrading our code (err.. beating our heads into the ground) soon.
Maybe this helps.
The thread Ulrich pointed to should be enough to solve this problem but I don't really think it's a bug because as I understand it you're doing it wrong:
http://blogs.msdn.com/oldnewthing/archive/2009/06/26/9804500.aspx
The solution is to clean up your form / treeview before DllMain gets called with DLL_PROCESS_DETACH.