Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Visual Metronome



I am trying to make a visual metronome that blinks on their beats. I don't have any idea on how to make the Beats Per Minute setting so the lights blink on their beats. I have everything else setup though. Any help would be great thanks. Before you look at it you should have the mcTween addon for flash (http://hosted.zeh.com.br/mctween/).

Thanks



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 12-02-2006, 04:00 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Metronome
Hello,

I'm wondering if anyone can help me come up with a metronome in Flash. Basically I'm looking for a code that allows me to play a sound at a variable rate.

Any ideas?

Thanks,
Josh

Metronome How To
I was wondering if anyone knows the basics of creating a metronome with flash mx...heres a webpage with one on it for an example, but this one has only on and off and has a smaller range of tempos than I want, I want more tempo range and maybe some subdivisions (just requiring way more code prob. and some extra sound files)...all i need is just the basics, even if its just an explaination of how the example one works, or how to get a hold of the code for that one so i can mod it.

any help is GReatly appreciated,thanks,
Dave O.

Metronome
Is there anyway of creating a metromone in flash that is very close to on beat? I'm using the timers in flash but they don't seem to be very accurate.

Metronome
Hello,

As part of a 'musical-learning tool' I am building I am hoping to include a metronome. However, being completely new to Flash I really have no idea where to start. I've outlined the proposal (/problem) in as much details as I can below:

1: User enters the metronome screen.
2: On screen, their is an input box (marked "BPM" (beats per minute)) where the user will enter how many beats a minute they wish for the metronome to beat. (Example: BPM = 120).
2.1: (Non-essential) - After the user has entered their required beats per minute then a dynamic text box will display in musical lingo the term for the speed entered (Example: Allegro).
3: Upon clicking play, the metronome will beat at this speed until the user ends the operation (using the 'stop' button).

Other features I would like to include, although are far from essential are an animated flashing symbol/button representing the metronome visually and a volume control.

I appreciate I am asking for a lot here, but any help will be greatfully recieved.

Regards,
Rob

(((Metronome)))
Does anyboy know how to create a metronome for a song in a flash website??

Help Creating A Metronome
I'm trying to make a metronome (the thing thats beeps regulary so musicians can use it when practicing keeping the beat).

My first attemt is 120 BPM (beat per minute). That means two beats per second. I made a flash-file with 60 frames per second. Then in a 60-frames movie-clip I place the beep-sound in frame 1 and 31 and loop the clip.
The problem appear when I upload the file on the internet - on my Mac the beat is quite close to 120 BPM but on my PC it's to slow (very much to slow).

I wonder if I could use the computers (MAC and PC) internal clock to determine when the beeps will appear. But I don' t know how to do that.

Any help and suggestions will be very appreciated.
Thanks in advance.


Ole Viller, Denmark
ole_viller@hotmail.com

Working Metronome
I was viewing threads on metronomes and people said they could not pull it off.Well i found one working great.

http://www.metronomeonline.com/

Now if someone will just tell me how they did it i'd be happy.

Flash Metronome
Hello,
I need to create a flash metronome. But I am still new to actionscript. I want the flash to have a input box where the user can type in a number (this number refers to the number of beats that the metronome will make every minute). So if the person type 120, there will be 120 beats in one minute. Therefore for every 0.5 second, flash will play a beating sound. Can anyone teach me how i can achieve this please? Thanks in advance.

Metronome Issue
Hi all,

Here is a link to a metronome online.

http://www.metronomeonline.com/

Would anyone know how to do that ?

It works very well on fast and slow computers.

I have tried playing the sound in the timeline of a clip, but in slow
computers, it does not keep synchronised.

Any help appreciated cause the wouldn't answer my e-mails.

Thanks

Metronome Trick
Sorry to bring back the subject, but this is important to me.

So, again, here is a link to a metronome online.

http://www.metronomeonline.com/

This SWF works on both PC and PDA and is just what I need.

Would anyone know how to do that ?

- I have tried playing the sound in the timeline of a clip, but in slow
computers, it does not keep synchronised.

- I have tried Shikozel's "intervalID=setInterval(this,"tickSound",mSec)"
trick but unfortunetely, this metronome is supposed to work on PDA as
well and they don't manage the Millisecondes "mSec" very well. PDAs have
problem to follow the rythm. As a result, a
192 BPM ends up at around 60 BPM.

However, this swf metronome does work on PDA, I have tested it.

So they use another trick.

But which one ?

Thanks for any help

Flash Metronome
hi im trying to make on in flash and cant seem to wrap my head around it. can someone please help me? i'll pay.

thanks

[as3] How Would You Make A Basic Metronome?
The idea is simple. All I want to do is play a beat sound at a user defined time interval, at say 100 bpm for instance.
There is an image of a clock on my stage.
There is one clock hand which must rotate in rhythm with the beat.

My problem is this: how do I synchronise the hand and the beat sound? The hand keeps rotating slower than the beat.

I've tried a few approaches, currently I'm trying with getTimer().
The following code is still missing the play beat bit but it's all I have so far and will give an idea of the strategy I'm using.


PHP Code:




var time:Number;
var tick:Number;         // (delay between ticks in milliseconds)

init(1000);

function init(setTick:Number) :void {
    time = getTimer();
    tick = setTick;
    addEventListener(Event.ENTER_FRAME, eachFrame);
}

function eachFrame(frameChanged:Event) :void {
    var elapsed:Number = getTimer() - time;
    time += elapsed;
    hand.rotation += 360 / (tick / elapsed)
}

Creating A Primitive Metronome
This process was adapted from code that rotates images in sequence. instead I want it to rotate a series of movie clips numbered metronom1.swf to metronom12.swf play a clip that contains an image and a metronom sound compiled in flash

What it does do is load metronom1.swf and metronom2.swf but it wont continue the sequence after that. I think its some thing to do with the rotate function that is not coded properly

Here is the code as it stands:

var metronomNum = 1;

function linkmetronom() {
window.alert("Current display is metronom image " + metronomNum + ".");
}
function rotatemetronom() {
if (++metronomNum > 12)
metronomNum = 1;

onLoad=window.setTimeout('rotatemetronom();', 1000);
document.write("<param name="BGColor" value="ccff33">");
document.write(' <PARAM NAME=movie VALUE="images/metronom2.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=menu VALUE=false>');
document.write(' <EMBED src="images/metronom2.swf" quality=high" ');
document.write(' "images/metronom" + metronomNum + ".swf"');
document.write(' "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ');
document.write(' type="application/x-shockwave-flash"');
document.write(' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" width="200" height="300"></embed></OBJECT>');



}

// Hide this Script from incompatible Web Browsers! -->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body background="Images/back04.jpg" onLoad="window.setTimeout('rotatemetronom();', 1000);">
<TABLE width=100% border=0 cellpadding=0 cellspacing=0>
<THEAD>
<TR>
<!--First Row :- ! -->
<!--1st Column :- ! -->
<TD width="3%" align="center">&nbsp;
<luginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="400"></embed></object>
<!--2nd Column :- ! -->
<TD width="70%">
<A href="javascript:linkmetronom();"><img name= "metronom"
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
height="100" align="absmiddle">
<param name="movie" value="images/metronom1.swf">
<param name="quality" value="high">
<embed src="images/metronom1.swf"
align="absmiddle"
quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash">
</embed></object></td>




I would be grateful for assitance on this

Thanks

Whas Is The Most Accurate Way To Make A Metronome
I'm sure this has come up in one form or the other.. In terms of music, the timing in flash is horrible. 1ms may not make much of a difference visually, but when it's syncronizing to music, the tiny flaws add up.

So, what's the most accurate way to time events? I tried doing getTimer() at the start of the routine, and finding the difference per 1ms and checking how many hald notes fit in that time. Works, but still, I wish there was an accurate clock to begin with.

The other thing I thought of, was to use the onSoundComplete, since for some programs (like max/msp) audio rate processing is more accurate. I tried looping a 1ms wav file, only to find out that the sound can only loop at a max rate of.. well, muh larger than 1ms intervals. But atleast it's pretty steady.

Anyone have any ideas?

How Can Use Flash Within Visual Basic Or Visual Basic.net.
Can I use Flash as my interface for applications created in Visual Basic or Visual Basic.net. I would really appreciate help from anybody.

Visual Basic
Has anyone seen anything anywhere about flash running Visual Basic Script? I just thought it may be possible to load and save variables using VB to create a text file?

Anyone thought about this?

//Gary

Visual Looping
So I'm trying to make a "filmstrip" effect...images scrolling past the user. The problem comes at the end of the filmstrip-I want it to be an endless loop. What's the best way to "loop" it so that as the long series of images is ending, the beginning of it starts again? This should ideally be endless without reiterating the object too many times.

I'm having trouble giving voice to what it is I want, I think, so if you have any questions about my request, let me know.

A Visual Preloading Bar
Guys,

How do I create the preloader bar, similar to that on http://semep.web1000.com ? and/or Where do I go to learn how to do it? 3rd Grade Engish please.

Mucho Gracias,
Marc

I Got A Visual This Time =)
back to the ol' buttons...

on(release)
{
getURL("http://www.flashkit.com", "mainFrame");
}


it isnt workin.. for me for some reason... see the main frame that has the header "News" ( Http://www.designforthelove.com ) i wanted the buttons to load the page there.. right now all the buttons are dead because the script wasnt workin i just put it up so all you geniuses could get a visual.. any help here? a friend of mine said i might have better luck going PHP scripting .. =/

Any comments/crit. on my new site would make my day!! Thanks once again guys!

Floating Visual
hello,
i have a top nav, and want to spruce it up a little.
i want an object "X" to slide across the top and stop,
whenever a button is rolled over. i have seen a couple of
.fla's but i cant get the code right.
thanx

Visual Basic 6.0
Hi guys

OK here's what I'm asking for

how do I interact between Visual Basic 6.0 and Action script from a Flash Movie.

Like to pass variables, in both directions.

thanks in advance

Visual Basic 6.0
Hi guys

OK here's what I'm asking for

how do I interact between Visual Basic 6.0 and Action script from a Flash Movie.

Like to pass variables, in both directions.

thanks in advance

The Best Visual Tutorials?
I'm a veru visual person...pictures speak so much louder than words. Where might I find a great site on Flash Tutorials of anykind that is very picture-e-phide.

Thanks,
JT

Atlanta, GA

Visual Chat?
I'm trying to build a visual chat.. possibly tile based with customizable characters..or perhaps a login, to get a character that has been directed to or adobted by a user.

Does anyone know's how to realize this? I know the basics of action scripting, and work with flash 5 and MX. I wanderd if anyone did this before and can help me a litle.. I'm better with graphix than scripting...

Or perhaps is there a tutorial online that I can use?

Thanx in advance

Visual Chat
Hello

im planning to build an avatar chat in flash with php.

Does anybody have an exemple .fla or something?

like http://www.actionscripts.co.uk/chat/

Tnx!!!!

Visual Tours
How is the best way to make a visual tour in flash mx? video or photos?
how would this be done?

would it differ in flash 5?

thanks for your help!

Visual Effects Help
I know his is not really the place for this post but couldnt see any other area to put it, i want to integrate visual motion effects into my flash movies such as the link below.


http://www.templatemonster.com/flash-intro/10268.html

Anyone know where i could start? Without really having to learn a major program of course

Cheers

MCKtj

Mp3 Visual Player
Ok, I've seen this done with flash, how do I get the values of the sounds to make a visual player that acts according to the music?

Strange Visual Bug..
If you open a new .fla file and plop in this code


ActionScript Code:
import flash.display.*;


drawClosedBox(50, 50, 10)
drawClosedBox(50, 70, 20);
drawClosedBox(50, 100, 40);
drawOpenBox(100, 50, 10);
drawOpenBox(100, 70, 20);
drawOpenBox(100, 100, 40);

function drawClosedBox(xStart:Number, yStart:Number, boxWidth:Number):void {
    graphics.beginFill(0xFFFFFF);
    graphics.lineStyle(0,0x000000);
    graphics.drawRect(xStart, yStart, boxWidth, boxWidth);
    graphics.endFill();
    graphics.moveTo(xStart + boxWidth * 0.25, yStart + boxWidth * 0.5)
    graphics.lineTo(xStart + boxWidth * 0.75, yStart + boxWidth * 0.5);
}

function drawOpenBox(xStart:Number, yStart:Number, boxWidth:Number):void {
    drawClosedBox(xStart, yStart, boxWidth);
    graphics.moveTo(xStart + (boxWidth * 0.5), yStart + (boxWidth * 0.25));
    graphics.lineTo(xStart + (boxWidth * 0.5), yStart + (boxWidth * 0.75));
}

I get a strange graphics error to the right of 2 of the boxes, where flash does not ever draw. What? I'm so confused - can anyone else replicate this?

Music + Visual...?
Is there a tutorial for when a song is playing the bars for bass, treble, sfx and stuff move up and down?...Its hard to explain, but I think its called an Ambience or Equilizer..im not sure, but is it possible to do that in flash mx?

Visual Effect.
I saw sotw site http://www.simplyinteractive.net/mainframe.htm and i was wondering how the designer made the effects at top of the page inside the 2 windows. All i know is that it is blue color and animating. Can anyone tell me how the designer did that? I hope there is a very simple way of doing it.
Thankyou,
Peace.

Non Visual Hit Counter
I simply want a hit counter that doesnt display to people visiting how many people have visited, but instead adds it to a number on a txt file on my server, yes ppl, it supports cold fusion, should make it a bit easier?

Sliding Visual
Hi all, I am after something similar to this :-

http://www.kirupa.com/developer/flash8/slidingMenu.htm

Except its going to be a series of screen shots in a window and I will have two arrows, one on the left and one on the right. Each arrow will either advance through the slides or go back. I am sure I have seen something similar before but cannot for th life of me remember where.

I think the version I used before was a numbered version,

any ideas guys?

Any links or help would be gr8

Cheers

AS3 To Visual C#.NET - Some Difficulty.
The last few days I've been trying to get started learning C#.Net. I'm not thrilled about it, but I think it's probably a good idea to know at least one other language besides AS3, which is my main focus.

Anyway, I found a couple of e-books and videos that cover the basics of C# and they've been helpful. One problem these books and videos all share, however, is the approach they take to creating windows form applications. I'm just finding it too visual. I'm supposed to manually drag and drop components onto a form and place little snippets of code on each instance--which means that if I've got a dozen buttons on my form, I've got a dozen little code snippets to keep track of. It feels like a big step backwards compared to what I'm used to. With AS3 I am used to creating objects and placing them on the stage using pure code. One C# video breezes through a 'longhand' version of creating a simple window with a couple of components, no drag and drop, but it goes by so fast it's impossible to follow. Just from what I can see, though, it's a lot like what I had been expecting.

I hope it isn't totally against the rules of this forum to ask a C# question. Perhaps someone will understand my problem and point me to the right C# book, website, video; or, if it is permitted, wouldn't mind posting a small code sample of a window with a button and textfield being created in 'longhand' -- when the button is clicked a message appears in the textfield.

Fingers

Real Visual Eq Here
ok i uploaded the real working visual Eq for all u ppl who wanna try it out! i might also put up some other good files!
/enjoy

Need Some Visual Tips
I have recently upgraded my Tooltip class and I would like ur opinions on that.

Ex. does animation is good, graphics or layout of tooltip.

Also I'd like to hear what behaviors you could imagine (to incorporate into it).

For now it supports an icon, a textField, sound with progressBars (play,load) and detection while it won't fit into stage (showing direction changes int 4 ways).

I was also thinking about possibility to show it in a specific place and close manually or have some buttons etc...

To check what I'm talking about, just rollOver that menuor border to see it changing directions:
http://felixz.mark-naegeli.com/example/

off topic:
-------------------------

Can you suggest me the look of submenus?
This is the old one: http://felixz.mark-naegeli.com/



I could submit code but for now it is dependant on my project and won't be friendly (some external linkings). Usage
ActionScript Code:
Tooltip.attachTooltip(internalBorder,"<B>It's a border</B><BR>Just RollOver and RollOut in different places."),"Info",null,genarateColor());

Visual Effect.
I saw sotw site http://www.simplyinteractive.net/mainframe.htm and i was wondering how the designer made the effects at top of the page inside the 2 windows. All i know is that it is blue color and animating. Can anyone tell me how the designer did that? I hope there is a very simple way of doing it.
Thankyou,
Peace.

Non Visual Hit Counter
I simply want a hit counter that doesnt display to people visiting how many people have visited, but instead adds it to a number on a txt file on my server, yes ppl, it supports cold fusion, should make it a bit easier?

New Visual Caster
This is rare for me to post in this forum, but this is something that has recently been released and should be a great benefit for presentations, its still in testing, so if you have any problems just shout.

www.visualcaster.co.uk

Visual Basic & Flash
Anyone know why these properties appear to be exposed to Visual Basic, but in reality they aren't?

Trying to get some actual logic for this.

Are these only Flash commands? Are they only available if called from an HTML page. Do you have to use java?

Did someone at Macromedia simply not check some check boxes when compiling the .OCX?

Nothing makes sense on this.



Property AlignMode As Long
Sub Back()
Property BackgroundColor As Long
Property Base As String
Property BGColor As String
Function CurrentFrame() As Long
Property DeviceFont As Boolean
Property EmbedMovie As Boolean
Function FlashVersion() As Long
Sub Forward()
Function FrameLoaded(FrameNum As Long) As Boolean
Property FrameNum As Long
Event FSCommand(command As String, args As String)
Function GetVariable(name As String) As String
Sub GotoFrame(FrameNum As Long)
Function IsPlaying() As Boolean
Sub LoadMovie(layer As Long, url As String)
Property Loop As Boolean
Property Menu As Boolean
Property Movie As String
Event OnProgress(percentDone As Long)
Event OnReadyStateChange(newState As Long)
Event OnReadyStateChange(newState As Long)
Function PercentLoaded() As Long
Sub Play()
Property Playing As Boolean
Property Quality As Long
Property Quality2 As String
Property ReadyState As Long
Sub Rewind()
Property SAlign As String
Property scale As String
Property ScaleMode As Long
Sub SetVariable(name As String, value As String)
Sub SetZoomRect(left As Long, top As Long, right As Long, bottom As Long)
Sub Stop()
Sub StopPlay()
Property SWRemote As String
Sub TCallFrame(target As String, FrameNum As Long)
Sub TCallLabel(target As String, label As String)
Function TCurrentFrame(target As String) As Long
Function TCurrentLabel(target As String) As String
Function TGetProperty(target As String, property As Long) As String
Function TGetPropertyNum(target As String, property As Long) As Double
Sub TGotoFrame(target As String, FrameNum As Long)
Sub TGotoLabel(target As String, label As String)
Property TotalFrames As Long
Sub TPlay(target As String)
Sub TSetProperty(target As String, property As Long, value As String)
Sub TSetPropertyNum(target As String, property As Long, value As Double)
Sub TStopPlay(target As String)
Property WMode As String
Sub Zoom(factor As Long)

Creating A Visual Calendar
I'm trying to make a calander that is visual (like some of the examples in the movies section), that loads an event list from an external file.

I'd like to have it so that if the user clicks on a date on the calendar; the event for that day pops up.

After looking at the examples, I'm still not sure how to create this.

Can anyone explain how to do this, or direct me to some doccumentation on how to do this??

Thanks a lot!

Visual C++ Vs. Flash ActionScript
Easy----VC++ is extremely powerful and can be used for almost anything. Flash has automatic variable identification, no use for pointers and is WAY easier to program in.....

Flash has easy DOT syntax and of course, produces vector graphics and ways of making animations, moving objects and loads of other stuff. VC++ is extremely powerful, but has a dificult time with non-windows-based-GUIs



This is one of my first posts and i just want to see what everyone thinks.

Also, I'm kinda new to the while flash thing and wondered if anyone could give me some pointers.

PRoblem With Visual Interdev?
After installing ASPTurbine, I am getting a message: Microsoft FrontPage Server Extensions:
http://gardners - Error #80002 Message: System exception: access violation.

When trying to setup a new Interdev directory. Fixes reported on MSDN do not help. Can anybody give me a CLEAR fix to this problem?

I can continue to work with existing projects...

Thanks.

Visual Basic And Flash
I have been asked to write a programme that integrates with Flash! The programme has to be written in VB6 and I know how to use the fscommand to get data from flash and into VB6 can anyone explain how to get data from VB6 into flash and I can't use director?

Mark

Visual Basic 6 And Flash
Hello, I am trying to include a flash movie on a vb6 form. I can do it at home but not at work. As soon as I try to use the shockwave flash component from my toolbar, vb crashes. I even compiled a vb/flash exe that works at home, then brought it to work to run it there, but it gives me an error about not being able to read memory. Can anyone help me?

Syncing Visual With Audio...Possible Or No?
Hello,

I was attempting to make an Intro video with Swish, but as it turned out, syncing the video with the audio was impossible, because it wouldnt appear the same on other computers. My question is, would this be the same with Flash, or would Flash videos actually appear the same on all computers, or at least better than Swish. I'm currently using Flash 5.

Embedding .swf In Visual Basic
First of all, if anyone knows a good resource for using the ShockwaveFlash component (swflash.ocx) in a Visual Basic program, I'd really appreciate that. I've tried using VB's MSDN help library, and found nothing.

I've stumbled along for a few months, using VB's Object Browser and guessing how to use a few of the properties and events. Now, however, I'm stumped.

I'm randomly loading and playing a movie, and matching the VB form background to the movie background (the movie .swf background color was set in Flash 5). There are three possible colors. That part works.

The problem is when another movie is loaded. For some reason, the new movie keeps the background color of the first movie that was loaded, even though in the Flash .swf file, the background color was set differently.

I've tried this (VB code, as I'm playing the movies in a VB program), and it didn't work:
Select Case GroupData(nr).bkgColorG
Case "blue"
frmGroup.BackColor = RGB(0, 0, 153)
swfMyMovie.BGColor = RGB(0, 0, 153)
Case "purple"
frmGroup.BackColor = RGB(153, 0, 153)
swfMyMovie.BGColor = RGB(153, 0, 153)
Case "green"
frmGroup.BackColor = RGB(0, 102, 0)
swfMyMovie.BGColor = RGB(0, 102, 0)
End Select

And this didn't work:
Select Case GroupData(nr).bkgColorG
Case "blue"
frmGroup.BackColor = RGB(0, 0, 153)
swfMyMovie.BackgroundColor = RGB(0, 0, 153)
Case "purple"
frmGroup.BackColor = RGB(153, 0, 153)
swfMyMovie.BackgroundColor = RGB(153, 0, 153)
Case "green"
frmGroup.BackColor = RGB(0, 102, 0)
swfMyMovie.BackgroundColor = RGB(0, 102, 0)
End Select

I tried setting the WMode (whatever that is) to transparent (someone suggested that it will show the form's background color). The movie shows the VB form's background color, but the play speed is greatly increased, which I don't want.

Help!

Visual Basic: Widescreen
I have this problem and wondered if any one could help. I have this swf file which has been made in widescreen proportions. I am loading this in to a flash object in VB. I have to display this on a widescreen tv for work. When I display it on a normal monitor it is letter box, with white spaces top and bottom, and when it is viewed through the widescreen tv the same thing happens, the image is just stretched even wider. I was wondering if any one could help me.

Thanks,
Laura

Matching Audio And Visual
I have an mp3 in my flash movie. When I hit enter in the stage screen to preview the timing is how I want it. When I hit ctrl + enter or ctrl + F12 the timing is off in the preview panes.

is there an accurate way to align the song and the movie so that doesn't involve guess work?

Thanks!

Copyright © 2005-08 www.BigResource.com, All rights reserved