Autor Beitrag
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 03.04.06 15:47 
Hast du die bass.dll runtergeladen und die zugehörige bass.pas bei Uses eingetragen?

_________________
We are, we were and will not be.
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mo 03.04.06 16:00 
ja hab ich aber ich komm nciht weiter... TFFTData mag er nciht undas hab ich dann durch DWORD ersetzt und dann kommt ein fehler und ich wüsste auch ncith wo der das anzeigt...
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 03.04.06 16:23 
Probiers mal mit Type TFFTData  = array [0..512] of Single;.

_________________
We are, we were and will not be.
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mo 03.04.06 16:32 
ok und jetzt kommt ungültige gleitkommaoperation...
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 03.04.06 16:37 
Könnte eine Ursache haben, über die ich auch schon gestolpert bin: Lösung gibts hier.

_________________
We are, we were and will not be.
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mo 03.04.06 16:40 
ok und wo hinein mit dem script??? in die BASS.pas ??
DaRkFiRe
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 526

WinXP Home & Professional
C, C++, Delphi
BeitragVerfasst: Mo 03.04.06 17:02 
Ich habe die Vermutung, dass Dein Vorhaben Dein Wissen und Deine Erfahrung mit Programmierung stark übersteigt...

_________________
Lang ist der Weg durch Lehren - kurz und wirksam durch Beispiele! Seneca
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 03.04.06 17:06 
Nein. Natürlich direkt in die bass.dll - einfach mit Notepad öffnen (der Delphi-interne Editor kann keine dlls öffnen), hinten per Copy&Paste anhängen und speichern.

Alternativ meinen Link nochmal anklicken, durchlesen, evtl. zu einigen Funktionen die Delphi-Hilfe befragen, das ganze verstehen und dann einige Teile meines Codes an der richtigen Stelle einsetzen.

_________________
We are, we were and will not be.
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mo 03.04.06 17:55 
aber wenn ich's mit dem Notepad öffne kommt folgendes ruas

vþÏ þ;…-‡*ð4õ#<8†ªÆÓ`˜;ç¤X˜ zí$Üï‚Ü¥‘�MÁŠßÉ‹ �5ØDWµÃr�î Àÿ¸„࡯j—›ÂPØ®ñ‘Õ¢L„ªø�ÇÇ“iÊ> R¼?˜Ð¿tÓ‡èàâ©�ÉfØ•‚dŒGŠåÂÝû÷N ÀºPÕ³~Mm‰Cr ˆÉ÷#5Ð@3ù†dì®|ÓO®�d¥~mßÊük­œÈ�t™ëXJtîÍÜ$ö*­õáTO¡ËƒÁó޿зî·Úþ
so was nur viiiiiiiiiieeel mehr....

kannst du mir das editieren??

F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Mo 03.04.06 17:58 
BITTE MACHT ZU, ICH KANN NICHT MEHR VOR LACHEN, BITTE ERLÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖÖST MICH !
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Mo 03.04.06 18:09 
Von mangelnden Delphi-Kentnissen weiter zu mangelnden Windows-Kentnissen...

Wie wäre es mit einem Tool, das Minuten in Sekunden umrechnet. Das ist perfekt fuer dich (hoff ich zumindest).
Wenn nicht, dann zeig deinen Source, den du bis jetzt hast.


PS: Für den geposteten Source, den Namen "MusicInfoFinder" und alles weitere, bekomm ich noch 1000€ von euch. Das ist geschützt :mrgreen:

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 03.04.06 18:16 
Leute, bitte beim Thema bleiben. :mahn:

@Philipp: Tut mir leid für den nicht verstandenen Scherz mit der dll. Probier mal meinen zweiten Vorschlag.

Alternativ den von GTA-Place.

_________________
We are, we were and will not be.
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mo 03.04.06 18:27 
was habt's denn jetzt für ein problem....!!!!!
Gausi hatt gesagt ich soll das im notepad öffnen und dann reinschreiben (bzw. editieren)...!!??
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Mo 03.04.06 18:29 
Gausi hat folgendes geschrieben:
@Philipp: Tut mir leid für den nicht verstandenen Scherz mit der dll. Probier mal meinen zweiten Vorschlag.

Außerdem sollst du mal Source posten.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mo 03.04.06 18:34 
@ GTA-Place:
hier dein source...

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
function AnalyzeSong(Song: PChar): Extended;
var
  FFTData: TFFTdata;
  FreqSch: Integer;
  Round:   Integer;
  SChan:   DWord;
begin
  SChan := BASS_StreamCreateFile(False, Song, 0, 0, BASS_STREAM_DECODE);

  try
    Result := 0;
    Round  := 0;

  {  while (Result = 0) OR (Round < 100) do
    begin   }

      BASS_ChannelGetData(SChan, @FFTData, BASS_DATA_FFT2048);

      for FreqSch := 0 to 1023 do
        Result := Result + FFTData[FreqSch];

      if not (Result = 0) then
        inc(Round);
    //end;

    Result := Result / (1024 * 100);
  except
    Result := 0;
  end;

  BASS_StreamFree(SChan);
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
if opendialog1.Execute= true then begin
AnalyzeSong(pchar(opendialog1.FileName));
end;
end;


und was schertz er hat geschrieben ich soll die DLL im Notepad öffnen und dann den script editieren!!!!!!!!!!!?????????????????

soll cihd as in die .Pas reinschreiben oder ws jetzt???
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Mo 03.04.06 18:39 
Doch nicht meinen Source :roll: Außerdem sollst du das, was in Gausis Thread steht in dein Programm schreiben. In diesem Fall kommt der Gleitkommafehler aber eher von hier: Result := Result / (1024 * 100);

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 03.04.06 18:41 
Ich frage mich gerade, ob ich den Thread schließen soll, es weiter versuchen soll, dir eine Merkbefreiung austellen soll (was eigentlich angebracht wäre), oder einfach nur akzeptieren soll, dass ich zu spät gemerkt habe, dass ich (und einige andere) einfach nur auf den Arm genommen werden.

_________________
We are, we were and will not be.
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: Mo 03.04.06 18:48 
hm.. ich glaub, er meint es ernst... :mrgreen:
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Mo 03.04.06 18:49 
kommt mir auch schon so vor, weil normal ist das nicht.
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mo 03.04.06 19:13 
was jetzt??!!! ich hab nur gefragt wie man die frequenz rausließt da hab ich den script von GTA-Playe genommen und dann kam das problem mit TFFTdata das haben wir gelöst und jetzt geht das mit dem gleitkomma irgendwas nicht und wenn du sagst ich soll die dll im notepad öffnen udn das editieren dann mach ich das und???? was is jetzt... kann mir jetzt jemand helfen übrigends GTA-Place das der fehler bei dem Result := Result / (1024*100) liegt wusst ich aber Grausi hatt mir das andere dann gesagt
IIIIIIICHHHHHHHHH WILL DOCH NUR DIE FREQUENZ HERAUSLESEN IST DAS SO SCHWER ZU KAPIEREN!!!!!!!!!!!!!!!!!!!!!