| View previous topic :: View next topic |
| Author |
Message |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Wed Mar 30, 2011 2:41 pm Post subject: |
|
|
| Evil_Intentions wrote: | | gogodr wrote: | my recomendation would be make the playh button start 2 threads
thread 1 processes the score and make a label update in the UI letting the user know it is processing then after it finishes create a new thread that starts playing the song ( also update the same label with a "now playing " )
that was you can abort the second thread with a stop button cant you ? |
The only problem is I would most likely have to rewrite alot of the program. Its not like
Start a new thread
{
do shit in this thread
} |
its not really a lot and it kind of is
create thread
this thread {
}
then start threads on the main program
but yeah its kind of some work for only a stop button.
(( at least in C#, I'm not sure about java ))
you can always end the process. |
|
| Back to top |
|
 |
Evil_Intentions Expert Cheater
Reputation: 65
Joined: 07 Jan 2010 Posts: 214
|
Posted: Wed Mar 30, 2011 2:51 pm Post subject: |
|
|
| gogodr wrote: | | Evil_Intentions wrote: | | gogodr wrote: | my recomendation would be make the playh button start 2 threads
thread 1 processes the score and make a label update in the UI letting the user know it is processing then after it finishes create a new thread that starts playing the song ( also update the same label with a "now playing " )
that was you can abort the second thread with a stop button cant you ? |
The only problem is I would most likely have to rewrite alot of the program. Its not like
Start a new thread
{
do shit in this thread
} |
its not really a lot and it kind of is
create thread
this thread {
}
then start threads on the main program
but yeah its kind of some work for only a stop button.
(( at least in C#, I'm not sure about java ))
you can always end the process. |
Yea, I've been looking since the day I started. That's why it has an Approximate time feature.
Also, I made it save to a folder "Saved Music" with the generator as the name. Thoughts on that? |
|
| Back to top |
|
 |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Wed Mar 30, 2011 3:01 pm Post subject: |
|
|
| Evil_Intentions wrote: | | gogodr wrote: | | Evil_Intentions wrote: | | gogodr wrote: | my recomendation would be make the playh button start 2 threads
thread 1 processes the score and make a label update in the UI letting the user know it is processing then after it finishes create a new thread that starts playing the song ( also update the same label with a "now playing " )
that was you can abort the second thread with a stop button cant you ? |
The only problem is I would most likely have to rewrite alot of the program. Its not like
Start a new thread
{
do shit in this thread
} |
its not really a lot and it kind of is
create thread
this thread {
}
then start threads on the main program
but yeah its kind of some work for only a stop button.
(( at least in C#, I'm not sure about java ))
you can always end the process. |
Yea, I've been looking since the day I started. That's why it has an Approximate time feature.
Also, I made it save to a folder "Saved Music" with the generator as the name. Thoughts on that? |
my only complain with the current save function is that it saves a blank extension file if you don't specify .mid in the end. |
|
| Back to top |
|
 |
Evil_Intentions Expert Cheater
Reputation: 65
Joined: 07 Jan 2010 Posts: 214
|
Posted: Wed Mar 30, 2011 3:02 pm Post subject: |
|
|
| gogodr wrote: | | Evil_Intentions wrote: | | gogodr wrote: | | Evil_Intentions wrote: | | gogodr wrote: | my recomendation would be make the playh button start 2 threads
thread 1 processes the score and make a label update in the UI letting the user know it is processing then after it finishes create a new thread that starts playing the song ( also update the same label with a "now playing " )
that was you can abort the second thread with a stop button cant you ? |
The only problem is I would most likely have to rewrite alot of the program. Its not like
Start a new thread
{
do shit in this thread
} |
its not really a lot and it kind of is
create thread
this thread {
}
then start threads on the main program
but yeah its kind of some work for only a stop button.
(( at least in C#, I'm not sure about java ))
you can always end the process. |
Yea, I've been looking since the day I started. That's why it has an Approximate time feature.
Also, I made it save to a folder "Saved Music" with the generator as the name. Thoughts on that? |
my only complain with the current save function is that it saves a blank extension file if you don't specify .mid in the end. |
._.
I have no clue how to change that
CURSE MY NOOBNESS |
|
| Back to top |
|
 |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Wed Mar 30, 2011 3:13 pm Post subject: |
|
|
| Evil_Intentions wrote: | | gogodr wrote: | | Evil_Intentions wrote: | | gogodr wrote: | | Evil_Intentions wrote: | | gogodr wrote: | my recomendation would be make the playh button start 2 threads
thread 1 processes the score and make a label update in the UI letting the user know it is processing then after it finishes create a new thread that starts playing the song ( also update the same label with a "now playing " )
that was you can abort the second thread with a stop button cant you ? |
The only problem is I would most likely have to rewrite alot of the program. Its not like
Start a new thread
{
do shit in this thread
} |
its not really a lot and it kind of is
create thread
this thread {
}
then start threads on the main program
but yeah its kind of some work for only a stop button.
(( at least in C#, I'm not sure about java ))
you can always end the process. |
Yea, I've been looking since the day I started. That's why it has an Approximate time feature.
Also, I made it save to a folder "Saved Music" with the generator as the name. Thoughts on that? |
my only complain with the current save function is that it saves a blank extension file if you don't specify .mid in the end. |
._.
I have no clue how to change that
CURSE MY NOOBNESS |
when you save the file just add .mid
like... you launch the file browser and it gives you a string with the location and file name.
in your save file line just add
location + ".mid"
just like that.
could also add detection to see if there was a . in the location name and that way you can check if the user added an extension or not. if not then add .mid |
|
| Back to top |
|
 |
Evil_Intentions Expert Cheater
Reputation: 65
Joined: 07 Jan 2010 Posts: 214
|
Posted: Wed Mar 30, 2011 3:21 pm Post subject: |
|
|
Oh durrr...I had missed a property.
That change has been made. Is saves to a subfolder "Songs" and has .midi when saving |
|
| Back to top |
|
 |
InternetIsSeriousBusiness Grandmaster Cheater Supreme
Reputation: 8
Joined: 12 Jul 2010 Posts: 1268
|
Posted: Mon Apr 23, 2012 8:52 pm Post subject: |
|
|
shit _________________
FLAME FLAME FLAME!!!@@@ |
|
| Back to top |
|
 |
Evil_Intentions Expert Cheater
Reputation: 65
Joined: 07 Jan 2010 Posts: 214
|
Posted: Mon Apr 23, 2012 9:13 pm Post subject: |
|
|
| Fuck off shot </3 |
|
| Back to top |
|
 |
|