|
-
Thick as a Brick
Record Player Again.
I kinda got a rotary volume control for my record play. But there's still some issues. Like half volume is actually O and clicking on the knob sets it to 0. But I did get it to kida work. here's an attachmet & links for anyone interested.
For the almost working one:
http://bigearthweb.com/bobgodwin/record_player.html
Last edited by bobgodwin; 01-05-2008 at 05:05 PM.
-
Relaxing
This may be the answer. I tried several things and then gave up and sat down at the kitchen table with some paper (god forbid I might have to think).
I change the rotation from "-135 to 135" to "0 to 270" as 135+135 = 270.
Then I rotated the volume control shape.
Since you can't have the volume up to 270, being it could blow a speaker, I set the volume to "volume = pivot * .37" this is because 100/270=.37
270*.37=100
I also set the initail volume to 0. If this doesn't work then repost as I did not check it on the internet. and if there is a problem then its probable something small. this is a nice player and you even have the warble in the graphics.
Any programming language is at its best before it is implemented and used.
-
Thick as a Brick
Well' it works like it should except for re-setting the sound to zero when you first click on it. It might be in this part of the code:
volKnob.onPress = function() {
if (Key.isDown(Key.getCode(18))) {
autoPan = true;
} else {
autoPan = false;
start = _root._xmouse;
newStart = volKnob._rotation;
dragging = true;
}
};
Or maybe here:
this.onEnterFrame = function() {
if (dragging) {
this.pivot = (_root._xmouse-start)*8+newStart;
I also tried adapting Necros (Hey Necro!) Sound Tracks volume control code for it. I got the knob to turn, but no sound. I've got several codes to control volume, but this is the closest to working. I'll leave it without a volume control till I figure it out. By the way, the warble was unintentional, but makes it more realistic. Now if I could get the arm to move across the record in time with the music???
-
KoolMoves Moderator
-
KoolMoves Moderator
After looking at the code of your player I see why this didn't get you excited you are not playing mp3 files you are loading swf music files. You might want to consider reworking that so that you are loading streaming mp3 instead of swf then this code will work for you.
-
Thick as a Brick
 Originally Posted by blanius
After looking at the code of your player I see why this didn't get you excited you are not playing mp3 files you are loading swf music files. You might want to consider reworking that so that you are loading streaming mp3 instead of swf then this code will work for you.
Those are the records. The mp3 is loaded from there. I've been working on it (And the arm, I'll post over at that thread in a bit), and I got the arm working, and just started looking at the volume knob.
Bob Godwin

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|