Browse Source

nichts wichtiges

master
seyffejn 4 years ago
parent
commit
5156b36051

+ 3
- 0
.gitignore View File

*.pyc *.pyc
TinnitusAnalyse/.idea/dictionaries/Julian.xml TinnitusAnalyse/.idea/dictionaries/Julian.xml
*.csv *.csv
TinnitusAnalyse/.idea/workspace.xml
TinnitusAnalyse/.idea/workspace.xml
TinnitusAnalyse/__pycache__/SoundGenerator.cpython-35.pyc

+ 49
- 28
TinnitusAnalyse/.idea/workspace.xml View File

<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="5b3f2136-e422-4072-84be-e86e40fa2d55" name="Default Changelist" comment=""> <list default="true" id="5b3f2136-e422-4072-84be-e86e40fa2d55" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/dictionaries/Julian.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/dictionaries/Julian.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/SoundGenerator.py" beforeDir="false" afterPath="$PROJECT_DIR$/SoundGenerator.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/SoundGenerator.py" beforeDir="false" afterPath="$PROJECT_DIR$/SoundGenerator.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/TinnitusAnalyse_GUI.py" beforeDir="false" afterPath="$PROJECT_DIR$/TinnitusAnalyse_GUI.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/TinnitusDaten.csv" beforeDir="false" afterPath="$PROJECT_DIR$/TinnitusDaten.csv" afterDir="false" /> <change beforePath="$PROJECT_DIR$/TinnitusDaten.csv" beforeDir="false" afterPath="$PROJECT_DIR$/TinnitusDaten.csv" afterDir="false" />
</list> </list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
</component> </component>
<component name="FileEditorManager"> <component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="true">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/TinnitusAnalyse_GUI.py"> <entry file="file://$PROJECT_DIR$/TinnitusAnalyse_GUI.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="248">
<caret line="155" lean-forward="true" selection-start-line="155" selection-end-line="155" />
<state relative-caret-position="398">
<caret line="299" lean-forward="true" selection-start-line="299" selection-end-line="299" />
<folding> <folding>
<element signature="e#0#117#0" expanded="true" /> <element signature="e#0#117#0" expanded="true" />
</folding> </folding>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$USER_HOME$/AppData/Local/Programs/Python/Python35/Lib/tkinter/__init__.py"> <entry file="file://$USER_HOME$/AppData/Local/Programs/Python/Python35/Lib/tkinter/__init__.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="874">
<state relative-caret-position="26435">
<caret line="1557" selection-start-line="1557" selection-end-line="1557" /> <caret line="1557" selection-start-line="1557" selection-end-line="1557" />
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false">
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/SoundGenerator.py"> <entry file="file://$PROJECT_DIR$/SoundGenerator.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="729">
<caret line="96" column="24" lean-forward="true" selection-start-line="96" selection-start-column="24" selection-end-line="96" selection-end-column="24" />
<state relative-caret-position="254">
<caret line="75" column="20" selection-start-line="75" selection-start-column="20" selection-end-line="75" selection-end-column="20" />
<folding> <folding>
<element signature="e#0#11#0" expanded="true" /> <element signature="e#0#11#0" expanded="true" />
</folding> </folding>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/../../../DigitalFilter.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="61">
<caret line="16" selection-start-line="16" selection-end-line="16" />
<folding>
<element signature="e#0#47#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$USER_HOME$/AppData/Local/Programs/Python/Python35/Lib/site-packages/matplotlib/axes/_base.py"> <entry file="file://$USER_HOME$/AppData/Local/Programs/Python/Python35/Lib/site-packages/matplotlib/axes/_base.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<option value="$PROJECT_DIR$/DigitalFilter1.py" /> <option value="$PROJECT_DIR$/DigitalFilter1.py" />
<option value="$PROJECT_DIR$/Noise Experiment.py" /> <option value="$PROJECT_DIR$/Noise Experiment.py" />
<option value="$PROJECT_DIR$/DigitalFilter.py" /> <option value="$PROJECT_DIR$/DigitalFilter.py" />
<option value="$PROJECT_DIR$/SoundGenerator.py" />
<option value="$PROJECT_DIR$/TinnitusAnalyse_GUI.py" /> <option value="$PROJECT_DIR$/TinnitusAnalyse_GUI.py" />
<option value="$PROJECT_DIR$/../../../DigitalFilter.py" />
<option value="$PROJECT_DIR$/SoundGenerator.py" />
</list> </list>
</option> </option>
</component> </component>
</option> </option>
</component> </component>
<component name="RunManager" selected="Python.TinnitusAnalyse_GUI"> <component name="RunManager" selected="Python.TinnitusAnalyse_GUI">
<configuration name="DigitalFilter" type="PythonConfigurationType" factoryName="Python" temporary="true">
<configuration name="DigitalFilter (1)" type="PythonConfigurationType" factoryName="Python" temporary="true">
<module name="TinnitusAnalyse" /> <module name="TinnitusAnalyse" />
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" /> <option name="PARENT_ENVS" value="true" />
<env name="PYTHONUNBUFFERED" value="1" /> <env name="PYTHONUNBUFFERED" value="1" />
</envs> </envs>
<option name="SDK_HOME" value="" /> <option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="IS_MODULE_SDK" value="true" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/../../.." />
<option name="IS_MODULE_SDK" value="false" />
<option name="ADD_CONTENT_ROOTS" value="true" /> <option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" /> <option name="ADD_SOURCE_ROOTS" value="true" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/DigitalFilter.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/../../../DigitalFilter.py" />
<option name="PARAMETERS" value="" /> <option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" /> <option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" /> <option name="EMULATE_TERMINAL" value="false" />
<option name="INPUT_FILE" value="" /> <option name="INPUT_FILE" value="" />
<method v="2" /> <method v="2" />
</configuration> </configuration>
<configuration name="DigitalFilter1" type="PythonConfigurationType" factoryName="Python" temporary="true">
<configuration name="DigitalFilter" type="PythonConfigurationType" factoryName="Python" temporary="true">
<module name="TinnitusAnalyse" /> <module name="TinnitusAnalyse" />
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" /> <option name="PARENT_ENVS" value="true" />
<option name="IS_MODULE_SDK" value="true" /> <option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" /> <option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" /> <option name="ADD_SOURCE_ROOTS" value="true" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/DigitalFilter1.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/DigitalFilter.py" />
<option name="PARAMETERS" value="" /> <option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" /> <option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" /> <option name="EMULATE_TERMINAL" value="false" />
<recent_temporary> <recent_temporary>
<list> <list>
<item itemvalue="Python.TinnitusAnalyse_GUI" /> <item itemvalue="Python.TinnitusAnalyse_GUI" />
<item itemvalue="Python.DigitalFilter (1)" />
<item itemvalue="Python.SoundGenerator" /> <item itemvalue="Python.SoundGenerator" />
<item itemvalue="Python.DigitalFilter" /> <item itemvalue="Python.DigitalFilter" />
<item itemvalue="Python.Noise Experiment" /> <item itemvalue="Python.Noise Experiment" />
<item itemvalue="Python.DigitalFilter1" />
</list> </list>
</recent_temporary> </recent_temporary>
</component> </component>
<entry file="file://$PROJECT_DIR$/DigitalFilter1.py" /> <entry file="file://$PROJECT_DIR$/DigitalFilter1.py" />
<entry file="file://$PROJECT_DIR$/Noise Experiment.py" /> <entry file="file://$PROJECT_DIR$/Noise Experiment.py" />
<entry file="file://$PROJECT_DIR$/DigitalFilter.py" /> <entry file="file://$PROJECT_DIR$/DigitalFilter.py" />
<entry file="file://$USER_HOME$/AppData/Local/Programs/Python/Python35/Lib/tkinter/__init__.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="26435">
<caret line="1557" selection-start-line="1557" selection-end-line="1557" />
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/AppData/Local/Programs/Python/Python35/Lib/site-packages/matplotlib/axes/_base.py"> <entry file="file://$USER_HOME$/AppData/Local/Programs/Python/Python35/Lib/site-packages/matplotlib/axes/_base.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="3349"> <state relative-caret-position="3349">
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$USER_HOME$/AppData/Local/Programs/Python/Python35/Lib/tkinter/__init__.py">
<entry file="file://$PROJECT_DIR$/../../../DigitalFilter.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="874">
<caret line="1557" selection-start-line="1557" selection-end-line="1557" />
<state relative-caret-position="61">
<caret line="16" selection-start-line="16" selection-end-line="16" />
<folding>
<element signature="e#0#47#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/SoundGenerator.py">
<entry file="file://$PROJECT_DIR$/TinnitusAnalyse_GUI.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="729">
<caret line="96" column="24" lean-forward="true" selection-start-line="96" selection-start-column="24" selection-end-line="96" selection-end-column="24" />
<state relative-caret-position="398">
<caret line="299" lean-forward="true" selection-start-line="299" selection-end-line="299" />
<folding> <folding>
<element signature="e#0#11#0" expanded="true" />
<element signature="e#0#117#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/TinnitusAnalyse_GUI.py">
<entry file="file://$PROJECT_DIR$/SoundGenerator.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="248">
<caret line="155" lean-forward="true" selection-start-line="155" selection-end-line="155" />
<state relative-caret-position="254">
<caret line="75" column="20" selection-start-line="75" selection-start-column="20" selection-end-line="75" selection-end-column="20" />
<folding> <folding>
<element signature="e#0#117#0" expanded="true" />
<element signature="e#0#11#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>

+ 2
- 2
TinnitusAnalyse/SoundGenerator.py View File

import math import math
import wave # bearbeiten von .wav-Dateien import wave # bearbeiten von .wav-Dateien
import struct import struct
import sounddevice as sd # zum abspielen des audio-arrays
import sounddevice as sd
import numpy as np import numpy as np
import sys # für Fehlermeldungen import sys # für Fehlermeldungen


# zuerst muss ein Array mit Audiodaten gefüllt werden # zuerst muss ein Array mit Audiodaten gefüllt werden
audio = [] audio = []
freq = self.tinnitus.linksFrequenz freq = self.tinnitus.linksFrequenz
dauer_ms = 10000.0 # 10 Sekunden
dauer_ms = 1000.0 # 10 Sekunden
amp = self.tinnitus.linksLautstaerke amp = self.tinnitus.linksLautstaerke
rauschen = self.tinnitus.linksRauschenLautstaerke rauschen = self.tinnitus.linksRauschenLautstaerke



+ 7
- 7
TinnitusAnalyse/TinnitusDaten.csv View File

Vorname;asdad
Nachname;sada
linke Frequenz;0.0
linke Lautstärke;0.0
Vorname;asd
Nachname;asda
linke Frequenz;770.0
linke Lautstärke;0.01
linkes Rauschen;0.0 linkes Rauschen;0.0
rechte Frequenz;0.0
rechte Lautstärke;0.0
rechte Frequenz;1410.0
rechte Lautstärke;0.03
rechtes Rauschen;0.0 rechtes Rauschen;0.0
Kommentar;
Kommentar;asd



BIN
TinnitusAnalyse/__pycache__/SoundGenerator.cpython-35.pyc View File


Loading…
Cancel
Save