Autor Beitrag
Benjie
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55

Win 98 SE / Win XP / xubuntu Linux / Mac OS 9.2
D6 Enterprise
BeitragVerfasst: Sa 03.12.05 17:17 
Hallo Zusammen!

ich hab' nen Frequentgenerator programmiert... ich weiss aber noch nicht ganz, ob das teil wirklich downloadtauglich ist. könnt ihr mir vielleicht ein paar tipps geben, was ich besser machen könnte... oder kritik :D ?

wäre dankbar!

hier wäre mal der download: www.8ung.at/gymigame...requenzgenerator.zip


Moderiert von user profile iconChristian S.: Topic aus VCL (Visual Component Library) verschoben am Sa 03.12.2005 um 16:25
Kroni
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 720

Win 98, Win ME, Win2k, Win XP
D3 Pro
BeitragVerfasst: Sa 03.12.05 17:26 
Wer soll denn bitte bis 50000 Hz hören können?

Ich kanns nich, also mal die Trackbar auf n kleineres maximum einstellen!
Und das grün ist auch nich grad der Renner im Hintergrund^^

Ansonsten ein simples Prog. Wie wäre es vlt. wenn du noch sagst: Ich gebe ständig den Ton aus, und wenn ich dann mal die Frequenz höher mache, also den Regler nach oben vaerschiebe, ändert sich sofort der Ton?
Dann hast du auch n richtigen FQ Generator
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: Sa 03.12.05 17:32 
Ich hör grad ma bis 16kHz. Entweder ich hör schlecht oder meine Boxen können nicht mehr.
Ach und stell das ganz noch auf einen Thread um, damit das Programm nicht hängen bleibt.

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

Win 98 SE / Win XP / xubuntu Linux / Mac OS 9.2
D6 Enterprise
BeitragVerfasst: Sa 03.12.05 17:36 
ja kroni, da hast du recht! 50000 hz hört niemand...
ich werd's ändern.
den hintergrund auch... (vielleicht nen farbverlauf???)
und das mit dem dauerton, den man verändern kann, hab ich mir auch schon mal überlegt. und ich bin auf der suche nach einer lösung für dieses problem...


:D Vielen Dank für deine antwort! :D


p.s. bald wird man dann 'ne andere version downloaden können.
Benjie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55

Win 98 SE / Win XP / xubuntu Linux / Mac OS 9.2
D6 Enterprise
BeitragVerfasst: Sa 03.12.05 17:38 
hey gta-place!

kommt bei dir der ton zu den externen lautsprechern raus???

und frage: wie macht man das mit dem thread???

:D danke ! :D

_________________
Nix tun is immer noch besser als etwas tun, was nix bringt...
Benjie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55

Win 98 SE / Win XP / xubuntu Linux / Mac OS 9.2
D6 Enterprise
BeitragVerfasst: Sa 03.12.05 17:50 
das mit dem verändern des tons direkt beim verschieben hab ich jetzt, aber wue mache ich, das er bleibt???

:?:

hier mal den code:

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:
  var
  Form1: TForm1;
  frequenz: integer;
  laenge: integer;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
laenge:=strtoint(edit2.Text);
frequenz:=strtoint(edit1.text);
Windows.Beep(frequenz, laenge);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
Windows.Beep(00);
end;

procedure TForm1.TrackBar2Change(Sender: TObject);
begin
edit2.Text:=inttostr(trackbar2.Position);
end;

procedure TForm1.TrackBar1Change(Sender: TObject);
begin
edit1.Text:=inttostr(trackbar1.Position);
laenge:=1;
frequenz:=strtoint(edit1.text);
Windows.Beep(frequenz, 1);
end;

procedure TForm1.Beenden1Click(Sender: TObject);
begin
application.Terminate;
end;

_________________
Nix tun is immer noch besser als etwas tun, was nix bringt...
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Sa 03.12.05 17:54 
Fragen zur Programmierung bitte in einem eigenen Thread! Danke! :-)

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Benjie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55

Win 98 SE / Win XP / xubuntu Linux / Mac OS 9.2
D6 Enterprise
BeitragVerfasst: Sa 03.12.05 17:56 
oke. ich werd' mich bemühen...
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Sa 03.12.05 18:17 
Naja, ich würde schon über den Wave-Kanal gehen. Beim PC-Speaker kommt oft einfach ein nerviges Rechtecksignal raus. Wenn du aber über die Soundkarte gehst, kannst du jedoch keinen Ton oberhalb der Nyquist-Frequenz rauslassen. Bei 44KHz wäre diese 22KHz. Das hört man aber zum Glück nicht mehr ;). (Das ist aber eine theoretische Grenze und auch Frequenzen, die unmittelbar unter dieser Nyquistfrequenz liegen, werden von den Boxen wohl nicht mehr sehr genau wiedergegeben (da die Boxen wohl kaum eine Sinc-Interpolation ausführen ;)))
G-McKree
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 178



BeitragVerfasst: Sa 24.12.05 14:16 
mir wär nie eigefallen, dass mein speaker nich angeschlossen ist...
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Sa 24.12.05 15:06 
Also wenn du dir Bass ( www.un4seen.com ) runterladst, ist da auch so ein Teil in den Delphi-Demos drinnen, nur dass es über die normalen autsprecher geht und die Frequenz bis 5kHz begrentzt ist, was man aber im Programm ganz leicht ändern könnte (einfach das Maximum der entsprechenden Scrollbar erhöhen)

_________________
Programmers never die, they just GOSUB without RETURN
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Sa 24.12.05 16:32 
Ich habe das Programm grad getestet aufm Laptop und finde es eigendlich ganz gut, nur irgendwie kann ich 16KHz besser als 14KHz hören :roll: ^^

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5284
Erhaltene Danke: 27

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Sa 24.12.05 17:09 
kann angehen, dann sind deine 14khz sensoren ein wenig defekt ^^

bei 7480 scheint mir schluss zu sein ^^
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Sa 24.12.05 17:46 
Vermutlich entsprechen 16KHz eher einer der Eigenschwingungen deiner Lautsprecher, weswegen das dann besser schwingt.
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5284
Erhaltene Danke: 27

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Sa 24.12.05 18:11 
oder so ^^ ich kann das schlecht beurteilen, da ich nun wirklich schlechte ohren habe :lol:
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Sa 24.12.05 18:41 
user profile icondelfiphan hat folgendes geschrieben:
Vermutlich entsprechen 16KHz eher einer der Eigenschwingungen deiner Lautsprecher, weswegen das dann besser schwingt.


Kann sein :D

Wir haben so einen Test schon mal in der Schule gemach und da hab ich entweder 16 oder 18KHz hören können.. weiß ich nicht mehr so genau. Also ich finde das Programm gut :beer:

greetz

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
Benjie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55

Win 98 SE / Win XP / xubuntu Linux / Mac OS 9.2
D6 Enterprise
BeitragVerfasst: Fr 06.01.06 18:31 
Titel: Frequenzgenerator
Vielen Dank für eure tollen Feedbacks! das mit den grenzen muss ich mir noch ein wenig überlegen...

MfG, Benjamin

_______________________
Nix tun is immer noch besser als etwas tun, was nix bringt...

Moderiert von user profile iconraziel: Überflüssige Zeilenumbrüche entfernt und "___" für Zweitsignatur gekürzt