Re: [MSEide-MSEgui-talk] Extended Tfilelistview.

2017-10-10 Thread Martin Schreiber
On Wednesday 11 October 2017 03:08:19 fredvs wrote:
> var
> x : integer;
> datalist_files : tfiledatalist;
> begin
>
> datalist_files := tfiledatalist.create();
>
> // This does not work --->
> // datalist_files.mask := '"*.mp3" "*.wav" "*.ogg" "*.flac"';
>
> datalist_files.adddirectory('/home/fred/mp3/Home cookin',fil_ext1);
>
"
datalist_files.adddirectory('./',fil_ext1,'"*.mp3" "*.wav" "*.ogg" "*.flac"');
"

Tip: Ctrl+LeftClick in source editor on "adddirectory" shows the the header 
definition:

"
   function adddirectory(const directoryname: filenamety;
ainfolevel: fileinfolevelty = fil_name; const amask: filenamearty = 
nil;
const aincludeattrib: fileattributesty = [fa_all];
const aexcludeattrib: fileattributesty = [];
const aoptions: dirstreamoptionsty = [];
const acheckproc: checkfileeventty = nil;
const noexception: boolean = false): boolean; overload;
//amask = nil -> all, true if ok
   function adddirectory(const directoryname: filenamety;
ainfolevel: fileinfolevelty; const amask: filenamety;
const aincludeattrib: fileattributesty = [fa_all];
const aexcludeattrib: fileattributesty = [];
const aoptions: dirstreamoptionsty = [];
const acheckproc: checkfileeventty = nil;
const noexception: boolean = false): boolean; overload;
//amask = '' -> all, true if ok
"

Martin

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Extended Tfilelistview.

2017-10-10 Thread fredvs
Hello Martin.

I have excellent result with this:

var
x : integer;
datalist_files : tfiledatalist;
begin

datalist_files := tfiledatalist.create();

// This does not work --->
// datalist_files.mask := '"*.mp3" "*.wav" "*.ogg" "*.flac"';

datalist_files.adddirectory('/home/fred/mp3/Home cookin',fil_ext1);

datalist_files.options := [flo_sortname,flo_sorttype];

demogrid.rowcount := datalist_files.count;

for x := 0 to datalist_files.count -1 do
begin
demogrid[0][x] := datalist_files.items[x].name;
demogrid[1][x] := fileext(datalist_files.items[x].name);
demogrid[2][x] := inttostr(datalist_files.items[x].extinfo1.size div 1000) +
' kb';
demogrid[3][x] :=
formatdatetime('-MM-DD',datalist_files.items[x].extinfo1.ctime);
end;

end;

See picture:
 

But how to apply a filter/mask ?

Thanks.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] StrumPract is released !

2017-10-10 Thread fredvs
Hello.

StrumPract 1.5.0. is released!

https://github.com/fredvs/strumpract/releases/tag/1.5.0

It includes a complete DJ console.
With auto-mixing from file list (auto-load next song at end of song),
auto-slider custom-able, and much more...

About the RPi-arm version.
Now that the appropriate audio-latency is set, the audio-quality is
excellent.
And if you use a hdmi connexion with a good receptor (a good tv for
example), you can have a real 24 bit output resolution.

Nearly all the native sound cards can deal float 32 resolution but the litle
amplifier integrated in the sound-card (used for headphone output or
line-out) is produced by the conversion of a 16 bit integer signal.

And so the input, even if it was float 32 bit, is re-formated into integer
16 bit.

But if you use a hdmi output, then the sound card will not deal with his
integrated analog-amplifier and will sent a float 32 bit signal.

And if your hdmi receptor has a 24 bit converter, you will have the same
quality as the best expensive sound cards on big heavy machine.

About Windows > XP and synchro of Drums-Set loop.
After XP, Windows did a completely different audio-driver.
In short, if a audio-flux is paused, Windows make that flux idle and when
the flux is resumed, it will take a little time for Windows to re-activate
the flux. And makes the synchro bad.
The trick is to use a endless flux and if you need to pause it, just give a
"silent" flux to the audio-driver (samples = 0).

But all this make the latency different as the "suggested" latency given by
the sound-card.

Setting the mse timer.options := [to_highres] did not help a lot.

Conclusion, with Windows > XP, for the Drums Set, it could be necessary to
tune manually the latency to have perfect result.  It can be done in menu
"Audio Config". 

Have fun.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk