Re: [Rosegarden-user] GCC version problem compiling Rosegarden 19.06

2019-08-24 Thread Darcy Kahle
You can ignore this.  I found 
https://linuxize.com/post/how-to-install-gcc-compiler-on-centos-7/ which 
outlines how to install multiple GCC compilers on Centos 7. Using this 
process, I was able to compile Rosegarden.


On 2019-08-22 8:01 p.m., Darcy Kahle wrote:
I am trying to install Rosegarden 19.06 on Centos 7, and I have a 
problem.  The requirements list GCC 6.3.0 as the minimum version, but 
Centos 7 comes with GCC 4.8.5.  When I go to build the source, I am 
getting a "no matching function" error that I attribute to this 
difference in GCC versions.  Please advise on what I could do to 
resolve this.




___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user



___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


[Rosegarden-user] GCC version problem compiling Rosegarden 19.06

2019-08-22 Thread Darcy Kahle
I am trying to install Rosegarden 19.06 on Centos 7, and I have a 
problem.  The requirements list GCC 6.3.0 as the minimum version, but 
Centos 7 comes with GCC 4.8.5.  When I go to build the source, I am 
getting a "no matching function" error that I attribute to this 
difference in GCC versions.  Please advise on what I could do to resolve 
this.




___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] possible bug with exporting overlapping notes to Midi file

2017-02-27 Thread Darcy Kahle
Just to let you know, I attempted to compile Rosegarden 16.0.6, but ran 
into the problem that it requires Qt 4.8, and the latest version 
available to my distro is 4.6.2.  I am now faced with either trying to 
upgrade QT to at least 4.8, or to figure out how to install Qt 5 
side-by-side with Qt 4 (likely the better solution) and use that version 
to compile Rosegarden.


On 2017-02-23 3:29 PM, Ted Felix wrote:
> On 02/22/2017 11:32 PM, Darcy Kahle wrote:
>> 4. Put an eighth note overlapping the quarter note (I put the quarter
>> and eighth notes to start at the start of the segment, same note)
> That was a bit tricky to do for me.  I'm using the notation editor
> and I dropped a quarter note, then moved it over top of the eighth note.
>
>> 6. Open the Midi file that you just exported.  You will notice that the
>> note(s) you entered are no longer a quarter note or eighth note, but
>> much longer (mine was 3 bars long).
> Confirmed in 13.06.  Confirmed as fixed in 16.06 and the latest svn.
> I recommend upgrading to 16.06.  (The latest svn is a bit unstable right
> now with cosmetic work that is in progress.)
>
> Let us know if you need help building 16.06.
>
> Ted.
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Rosegarden-user mailing list
> Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
> https://lists.sourceforge.net/lists/listinfo/rosegarden-user
>


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] possible bug with exporting overlapping notes to Midi file

2017-02-23 Thread Darcy Kahle
Thanks for confirming and identifying the version that it is fixed in.  
I will try and find some time to upgrade to the current available 
version (not the svn version) from source.

As for adding the overlapping notes, I do not use the notation editor, 
but the piano-roll type editor.  It is easy to enter there.


On 2017-02-23 3:29 PM, Ted Felix wrote:
> On 02/22/2017 11:32 PM, Darcy Kahle wrote:
>> 4. Put an eighth note overlapping the quarter note (I put the quarter
>> and eighth notes to start at the start of the segment, same note)
> That was a bit tricky to do for me.  I'm using the notation editor
> and I dropped a quarter note, then moved it over top of the eighth note.
>
>> 6. Open the Midi file that you just exported.  You will notice that the
>> note(s) you entered are no longer a quarter note or eighth note, but
>> much longer (mine was 3 bars long).
> Confirmed in 13.06.  Confirmed as fixed in 16.06 and the latest svn.
> I recommend upgrading to 16.06.  (The latest svn is a bit unstable right
> now with cosmetic work that is in progress.)
>
> Let us know if you need help building 16.06.
>
> Ted.
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Rosegarden-user mailing list
> Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
> https://lists.sourceforge.net/lists/listinfo/rosegarden-user
>


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


[Rosegarden-user] possible bug with exporting overlapping notes to Midi file

2017-02-22 Thread Darcy Kahle
List:

I realize that I am running a relatively older version of Rosegarden, 
but I think I have uncovered a bug relating to exporting Midi.  I am 
running Rosegarden "Imagination", v 13.06, QT 4.6.2, Build Key 8bb9473428.

Steps to recreate:

1. open a new file

2. Add a 3 bar segment (can be any size - this is not related to the bug)

3. Put a quarter note at the start of the segment (any note of your choice)

4. Put an eighth note overlapping the quarter note (I put the quarter 
and eighth notes to start at the start of the segment, same note)

5. Export this to Midi

6. Open the Midi file that you just exported.  You will notice that the 
note(s) you entered are no longer a quarter note or eighth note, but 
much longer (mine was 3 bars long).

It should be noted that any later notes on the same line will be longer 
too, but other notes will be unaffected.  It appears that overlapping 
notes causes this effect.


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] compiling help

2013-12-15 Thread Darcy Kahle
He needs to post the full output of the compilation, not just the 
error.  The issue is that it is looking for /usr/local/lib as a file, 
but it is a directory.  We need to know the command used to compile, and 
the context around the error, so that we can determine why it is looking 
for /usr/local/lib as a file.


D. Michael McIntyre wrote:

On 12/14/2013 06:09 AM, hanlet wrote:

  

Is there something else that I need to do?



I read through your message and left it in the hopes that somebody else 
would respond.  Nobody did, and I really don't have much to suggest 
myself.  I don't see any possible advantage to building as root, so I'd 
suggest building as a user.  Apart from that, I got nothin'.
  
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] recording audio

2013-11-01 Thread Darcy Kahle
I have not yet compiled Ardour on this computer.  I was hoping that the 
audio could be recorded internal to Rosegarden, but it looks like I will 
be compiling Ardour this weekend.  In the past, recording with Ardour 
was difficult, but that was probably because I was using a really slow 
computer at the time.


Brian Clem wrote:
Have you tried connecting jack/Qsynth to Ardour and/or,also 
Timemachine at the same time you are connected to Rosegarden?   Do the 
other apps record the midi/Qsynth at the same low vol level?



On Thu, Oct 31, 2013 at 9:22 PM, Darcy Kahle darcyka...@sympatico.ca 
mailto:darcyka...@sympatico.ca wrote:



D. Michael McIntyre wrote:

On 10/30/2013 10:47 PM, Darcy Kahle wrote:

  

Windows computer, and the file is very soft.  For some reason,
Rosegarden is recording at a low volume.

Fool around with the gain control while you play a representative sample 
to watch for high spikes on the VU meter.  You want to get it as high as 
you can without clipping anything.


I'm not looking at anything right now, and can't at the moment, so I'm 
just going on memory.  I don't think the control is labeled gain as 
such, and I think it's a red slider in the audio instrument parameters box.


For a recording that's already done where the volume is too low, it's 
likely that you captured sufficient information, and just need to push 
the levels up as high as they can go without clipping.  Running 
normalize on the sample ought to take care of that nicely.  There's a 
free-standing command line app, and several applications have a 
normalize function built in.
  

I did see that slider, and while raising that all the way up to
the top (+6.000), it only raised the volume of the recorded file
by a couple degrees of a whisper, and what I did hear was really
clipped.

I tried to locate the free-standing app that you mentioned that
would raise the volume, but could not locate it.  Please let me
know what the command name is, and I will try again to find it.




--
Android is increasing in popularity, but the open development
platform that
developers love is also attractive to malware creators. Download
this white
paper to learn more about secure code signing practices that can
help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk

http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net
mailto:Rosegarden-user@lists.sourceforge.net - use the link
below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


--
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] recording audio

2013-11-01 Thread Darcy Kahle
I will try routing the signals in QJackCTL tonight and let you know.  Thanks.  
As for the Normalize, I am running Centos, not Kubuntu, and that is not on my 
system.  I would have to find it's source and build it.
 

 Date: Fri, 1 Nov 2013 08:27:40 -0400
 From: rosegarden.trumpe...@gmail.com
 To: rosegarden-user@lists.sourceforge.net
 Subject: Re: [Rosegarden-user] recording audio
 
 On 10/31/2013 09:22 PM, Darcy Kahle wrote:
 
  I did see that slider, and while raising that all the way up to the top
  (+6.000), it only raised the volume of the recorded file by a couple
  degrees of a whisper, and what I did hear was really clipped.
 
 OK, the signal Rosegarden is getting is very weak.
 
 My guess is that you're just recording the entire soundcard mix instead 
 of recording QSynth directly. Use QJackCtl to hook QSynth's outputs to 
 Rosegarden's inputs, and that will get you a clean, full-strength signal.
 
  I tried to locate the free-standing app that you mentioned that would
  raise the volume, but could not locate it. Please let me know what the
  command name is, and I will try again to find it.
 
 I already named it. The command to normalize audio files is 'normalize'.
 
 Well, that's what it used to be. It's apparently 'normalize-audio' now 
 on Kubuntu 12.04. Anyway, with such a weak signal this isn't going to 
 help you much. Get a stronger signal first. Fooling around with the 
 audio routing in QJackCtl is surely your friend here.
 -- 
 D. Michael McIntyre
 
 --
 Android is increasing in popularity, but the open development platform that
 developers love is also attractive to malware creators. Download this white
 paper to learn more about secure code signing practices that can help keep
 Android apps secure.
 http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk
 ___
 Rosegarden-user mailing list
 Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
 https://lists.sourceforge.net/lists/listinfo/rosegarden-user
  --
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] recording audio

2013-10-31 Thread Darcy Kahle


D. Michael McIntyre wrote:

On 10/30/2013 10:47 PM, Darcy Kahle wrote:

  

Windows computer, and the file is very soft.  For some reason,
Rosegarden is recording at a low volume.



Fool around with the gain control while you play a representative sample 
to watch for high spikes on the VU meter.  You want to get it as high as 
you can without clipping anything.


I'm not looking at anything right now, and can't at the moment, so I'm 
just going on memory.  I don't think the control is labeled gain as 
such, and I think it's a red slider in the audio instrument parameters box.


For a recording that's already done where the volume is too low, it's 
likely that you captured sufficient information, and just need to push 
the levels up as high as they can go without clipping.  Running 
normalize on the sample ought to take care of that nicely.  There's a 
free-standing command line app, and several applications have a 
normalize function built in.
  
I did see that slider, and while raising that all the way up to the top 
(+6.000), it only raised the volume of the recorded file by a couple 
degrees of a whisper, and what I did hear was really clipped.


I tried to locate the free-standing app that you mentioned that would 
raise the volume, but could not locate it.  Please let me know what the 
command name is, and I will try again to find it.



--
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


[Rosegarden-user] recording audio

2013-10-30 Thread Darcy Kahle
Any tips for recording onto an Audio track?  Anything I do results in a 
very soft recording.  I would like to greatly increase the volume of the 
recorded audio file. I am using Rosegarden 13.06.

--
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] recording audio

2013-10-30 Thread Darcy Kahle

I am using Qsynth to play the MIDI output through Jack.

I will check out the link, thanks.

Brian Clem wrote:
Its most likely not a Rosegarden concern.  Rosegarden is the end 
result showing you lower_than_needed levels. 

What hardware are you using?  Check your mixers to make sure your 
input level is where it needs to be.  I am hoping this link will help:


http://mytechrants.wordpress.com/2009/06/28/linux-sound-level-too-low/

Good luck!


On Wed, Oct 30, 2013 at 10:01 PM, Darcy Kahle darcyka...@sympatico.ca 
mailto:darcyka...@sympatico.ca wrote:


Any tips for recording onto an Audio track?  Anything I do results
in a
very soft recording.  I would like to greatly increase the volume
of the
recorded audio file. I am using Rosegarden 13.06.


--
Android is increasing in popularity, but the open development
platform that
developers love is also attractive to malware creators. Download
this white
paper to learn more about secure code signing practices that can
help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk

http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net
mailto:Rosegarden-user@lists.sourceforge.net - use the link
below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


--
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] save as Midi 0 file?

2013-07-29 Thread Darcy Kahle
This apparently will not work, and I will have to re-work it.  This Perl 
module does not change the midi format, just a field specifying the 
type.  I put a $opus-dump(); after reading the file and saw what was 
happening.  In reality, Midi 1 has the tempo changes, etc on track 0 and 
the notes on track 1.  Midi 0 has everything on track 0.  That is not 
what was happening.  It kept the two tracks as they were.  An example 
difference from a file I created before my computer went south:


Midi Type 1:
MIDI::Opus-new({
 'format' = 1,
 'ticks'  = 480,
 'tracks' = [   # 2 tracks...

   # Track #0 ...
   MIDI::Track-new({
 'type' = 'MTrk',
 'events' = [  # 7 events.
   ['copyright_text_event', 0, 'Unknown'],
   ['cue_point', 0, 'Created by Rosegarden'],
   ['cue_point', 0, 'http://www.rosegardenmusic.com/'],
   ['set_tempo', 0, 75],
   ['set_tempo', 5760, 789473],
   ['set_tempo', 86460, 789473],
   ['set_tempo', 900, 789473],
 ]
   }),
  
   # Track #1 ...

   MIDI::Track-new({
 'type' = 'MTrk',
 'events' = [  # 1718 events.
   ['track_name', 0, ''],
   ['patch_change', 0, 0, 1],
   ['control_change', 0, 0, 7, 100],
   ['control_change', 0, 0, 10, 64],
   ['note_on', 960, 0, 81, 100],
   ['note_on', 0, 0, 65, 100],
   ['note_on', 0, 0, 71, 100],

Midi Type 0:
MIDI::Opus-new({
 'format' = 0,
 'ticks'  = 480,
 'tracks' = [   # 1 tracks...

   # Track #0 ...
   MIDI::Track-new({
 'type' = 'MTrk',
 'events' = [  # 1724 events.
   ['copyright_text_event', 0, 'Unknown'],
   ['cue_point', 0, 'Created by Rosegarden'],
   ['cue_point', 0, 'http://www.rosegardenmusic.com/'],
   ['set_tempo', 0, 75],
   ['patch_change', 0, 0, 1],
   ['control_change', 0, 0, 7, 100],
   ['control_change', 0, 0, 10, 64],
   ['note_on', 960, 0, 81, 100],
   ['note_on', 0, 0, 65, 100],
   ['note_on', 0, 0, 71, 100],
   ['note_on', 0, 0, 74, 100],
   ['note_off', 720, 0, 81, 127],


Darcy Kahle wrote:
Thanks for this suggestion.  I have decided to do this up in Perl 
instead of C.  For those interested in this, here is my initial code.  
It works, but does not look nice.  You will have to install the Tk and 
MIDI Perl modules.


#!/usr/bin/perl -w
use Tk;
use Tk::Optionmenu;
use Tk::FBox;
use Tk::MsgBox;
use MIDI;
use strict;

my $mw = MainWindow-new;
my $lbsel;

$mw-Label(-text = 'Convert to type:')-pack;
my $lb = $mw-Optionmenu(
-options = ['0', '1'],
-variable = \$lbsel
)-pack;
$mw-Button(
-text= 'Convert',
-command = sub {doConvert() }
)-pack;
$mw-Button(
-text= 'Quit',
-command = sub { exit }
)-pack;
MainLoop;
sub doConvert {
my $ffile = $mw-FBox(
-type = 'open',
-filetypes = [[ 'midi files', '.mid' ]],
-title = 'Select MIDI file to convert...'
)-Show;
if ($ffile ne ) {
my $tfile = $mw-FBox(
-type = 'save',
-filetypes = [[ 'midi files', '.mid' ]],
-title = 'Save converted file as...'
)-Show;
if ($tfile ne ) {
my $opus = MIDI::Opus-new({ 'from_file' = $ffile, 
'no_parse' = 1 });
$mw-MsgBox(-title = converting..., -detail = 
converting to type: $lbsel, -type = 'ok')-Show;

$opus-format($lbsel);
$opus-write_to_file($tfile);
}
}
}


Michael Gerdau wrote:

Thanks for that link.  It appears that it will do the job (and there are
a few other programs there that might be helpful as well), but I would
prefer a native Linux app, if one exists.



If you have at least basic C coding skills you could try these MIDI
utilities (i.e. the corresponding MIDI file library):
http://www.sreal.com/~div/midi-utilities/

A format conversion to MIDI type 0 program would look something like
this (not tested - meant as primitive sketch).


#include midifile.h
int main(int argc, char **argv)
{
  MidiFile_t myMidiFile = MidiFile_load(some_path_to_midifile);
  MidiFile_setFileFormat(myMidiFile, 0);
  return MidiFile_save(myMidiFile, some_other_path_to_midifile);
}


Look at the other utilities and their Makefiles to see how to add
this to the whole set. Or just create a project on your own.

Of course you could add some cmdline parameter handling to parameterize
filenames, format and you could add other stuff like changing resolution
etc.

HTH,
Michael
  



--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk

Re: [Rosegarden-user] save as Midi 0 file?

2013-07-29 Thread Darcy Kahle
Here is the fixed version.  I found a Perl script at 
http://sourceforge.net/projects/midi2fluxama/files/ called midi120.pl 
that uses this Perl module, and I have merged the logic into my script.


#!/usr/bin/perl -w
   use Tk;
   use Tk::Optionmenu;
   use Tk::FBox;
   use Tk::MsgBox;
   use MIDI;
   use strict;

   my $mw = MainWindow-new;

   $mw-Label(-text = 'Convert to type 0')-pack;
   $mw-Button(
   -text= 'Convert',
   -command = sub {doConvert() }
   )-pack;
   $mw-Button(
   -text= 'Quit',
   -command = sub { exit }
   )-pack;
   MainLoop;
sub doConvert {
   my $ffile = $mw-FBox(
   -type = 'open',
   -filetypes = [[ 'midi files', '.mid' ]],
   -title = 'Select MIDI file to convert...'
   )-Show;
   if ($ffile ne ) {
   my $tfile = $mw-FBox(
   -type = 'save',
   -filetypes = [[ 'midi files', '.mid' ]],
   -title = 'Save converted file as...'
   )-Show;
   if ($tfile ne ) {
   my $opus = MIDI::Opus-new({ 'from_file' = $ffile });
   my $nt = MIDI::Track-new;
   if ($opus-format!=1) {
 $mw-MsgBox(-title = Cancelling, -detail = $ffile is 
already in format 0, -type = 'ok')-Show;

   } else {
 $mw-MsgBox(-title = converting..., -detail = 
converting to type: 0, -type = 'ok')-Show;

 my @events;
 my @event_counter;
 my @dtime;
 my $i;
 for ($i=0;$iscalar($opus-tracks);$i++) {
   
$events[$i]=$event_counter[$i]=scalar(($opus-tracks)[$i]-events);

 }
 while(1) {
   for ($i=0;$iscalar($opus-tracks);$i++) {
 if ($event_counter[$i]0) {
   
$dtime[$i]=(($opus-tracks)[$i]-events)[scalar(@events)-$event_counter[$i]][1];

 } else {
   $dtime[$i]=undef;
 }
   }
   my $lowest_dtime = undef;
   my $use_track=undef;
   for ($i=0;$iscalar($opus-tracks);$i++) {
 next if(!defined($dtime[$i]));
 if($dtime[$i]==0) {
   $use_track=$i;
   last;
 } else {
   if (!defined($lowest_dtime)||$dtime[$i]$lowest_dtime) {
 $use_track=$i;
 $lowest_dtime=$dtime[$i];
   }
 }
   }
   if (!defined($use_track)) {
 last;
   }
   for ($i=0;$iscalar($opus-tracks);$i++) {
 next if(!defined($dtime[$i]));
 if($event_counter[$i]0  $i!=$use_track) {
   
(($opus-tracks)[$i]-events)[scalar(@events)-$event_counter[$i]][1]-=$dtime[$use_track];

 }
   }
   my 
$ev=(($opus-tracks)[$use_track]-events)[scalar(@events)-$event_counter[$use_track]];

   $nt-new_event(@$ev);
   $event_counter[$use_track]--;
 }
   }
   my $newsng = MIDI::Opus-new({
'format'=0,
'ticks'=$opus-ticks,
'tracks'=[$nt]
   });
   #$opus-format($lbsel);
   $newsng-write_to_file($tfile);
   }
   }
}


Darcy Kahle wrote:
This apparently will not work, and I will have to re-work it.  This 
Perl module does not change the midi format, just a field specifying 
the type.  I put a $opus-dump(); after reading the file and saw what 
was happening.  In reality, Midi 1 has the tempo changes, etc on track 
0 and the notes on track 1.  Midi 0 has everything on track 0.  That 
is not what was happening.  It kept the two tracks as they were.  An 
example difference from a file I created before my computer went south:


Midi Type 1:
MIDI::Opus-new({
  'format' = 1,
  'ticks'  = 480,
  'tracks' = [   # 2 tracks...

# Track #0 ...
MIDI::Track-new({
  'type' = 'MTrk',
  'events' = [  # 7 events.
['copyright_text_event', 0, 'Unknown'],
['cue_point', 0, 'Created by Rosegarden'],
['cue_point', 0, 'http://www.rosegardenmusic.com/'],
['set_tempo', 0, 75],
['set_tempo', 5760, 789473],
['set_tempo', 86460, 789473],
['set_tempo', 900, 789473],
  ]
}),
   
# Track #1 ...

MIDI::Track-new({
  'type' = 'MTrk',
  'events' = [  # 1718 events.
['track_name', 0, ''],
['patch_change', 0, 0, 1],
['control_change', 0, 0, 7, 100],
['control_change', 0, 0, 10, 64],
['note_on', 960, 0, 81, 100],
['note_on', 0, 0, 65, 100],
['note_on', 0, 0, 71, 100],

Midi Type 0:
MIDI::Opus-new({
  'format' = 0,
  'ticks'  = 480,
  'tracks' = [   # 1 tracks...

# Track #0 ...
MIDI::Track-new({
  'type' = 'MTrk',
  'events' = [  # 1724 events.
['copyright_text_event', 0, 'Unknown'],
['cue_point', 0, 'Created by Rosegarden'],
['cue_point', 0

[Rosegarden-user] save as Midi 0 file?

2013-07-28 Thread Darcy Kahle
After my old box (of 15 years) finally died, I have made the move to 
upgrade the hardware and Rosegarden to the latest version.  I had 
installed on the old hardware, under Wine, a windows app that converts 
Midi files from Midi 1 to Midi 0, and with the failure of the box, I 
have lost that.  Does anyone know of a Linux solution to this?  The 
keyboard at church only takes Midi 0 files, so when I load a Midi 1 
file, it ignores any time changes.  I really need a way to save the midi 
files as Midi 0.

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] save as Midi 0 file?

2013-07-28 Thread Darcy Kahle
Thanks for that link.  It appears that it will do the job (and there are 
a few other programs there that might be helpful as well), but I would 
prefer a native Linux app, if one exists.

Lawrence E Toal wrote:
 Have you tried this freeware under WINE?
 http://www.gnmidi.com/gn1to0.zip
  It runs here using wine-1.6 , but I don't have a format 0
 device to test it with..

 --Lawrence

 --
 See everything from the browser to the database with AppDynamics
 Get end-to-end visibility with application monitoring from AppDynamics
 Isolate bottlenecks and diagnose root cause in seconds.
 Start your free trial of AppDynamics Pro today!
 http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
 ___
 Rosegarden-user mailing list
 Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
 https://lists.sourceforge.net/lists/listinfo/rosegarden-user


   

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user


Re: [Rosegarden-user] RG 11.02 DSSI issue

2011-03-02 Thread Darcy Kahle
Redhat tends to set the up the /etc/hosts to have only the loopback 
line, ie:


127.0.0.1  localhost localhost

Sometimes, the installer takes the hostname that you provide it and puts 
it on the same line, ie:


127.0.0.1  hostname localhost localhost

That would be the standard setup for DHCP-driven computers.  For 
statically allocated IP addresses, the idea is to put the hostname on 
the line with the real ip address, ie:


127.0.0.1 localhost localhost
192.168.0.20 hostname hostname.mynet

I would try either the second or the third method

Darcy

D. Michael McIntyre wrote:

On Monday, February 28, 2011, Al Thompson wrote:

  

Fluidsynth, and apparently enough of the framework that RG lets me
select it, but I can't edit anything or pull the Fluidsynth GUI up??



I know what this sounds like, but I've forgotten how to fix it, and I didn't 
manage to google the answer right up.


This has something to do with networking, with the way /etc/hosts is 
configured on certain systems out of the box.  You have to make a minor change 
to /etc/hosts to get the plugin GUIs working.


Quite what that minor change is, I wish I could remember.  I think it has 
something to do with there not being a proper entry for localhost, but some of 
the other things I googled up seem to implicate ipv6 too.
  
--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev ___
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user