def download(testMode=False): params = { "tag": "", "duration": (0, 10), "API_Key": conf.myAPI_Key, "outputDir": conf.myOutputDir, "topNResults": 50, "featureExt": ".json", "preview": False, "emptyDir": False, "pack": "", "freeSoundId": "", "noDownload": False, } params["noDownload"] = testMode if testMode: params["topNResults"] = 1 params["folderName"] = "xiaoluo" params["tag"] = "xiaoluo-instrument" sd.downloadFreesound(**params)
def download(testMode=False): params = { 'tag' : '', 'duration' : (0,10), 'API_Key' : conf.myAPI_Key, 'outputDir' : conf.myOutputDir, 'topNResults' : 50, 'featureExt' : '.json', 'preview' : False, 'emptyDir' : False, 'pack' : '', 'freeSoundId' : '', 'noDownload': False} params['noDownload'] = testMode if testMode: params['topNResults'] = 1 params['folderName'] = 'daluo' params['tag'] = 'daluo-instrument' sd.downloadFreesound(**params)
def download(testMode=False): params = { 'tag': '', 'duration': (0, 10), 'API_Key': conf.myAPI_Key, 'outputDir': conf.myOutputDir, 'topNResults': 3, 'featureExt': '.json', 'preview': False, 'emptyDir': False, 'folderName': 'flute', 'pack': '', 'freeSoundId': '', 'noDownload': False } params['noDownload'] = testMode if testMode: params['topNResults'] = 1 noteRange = ["C", "D", "E", "F", "G", "A", "B"] octaveRange = ["3", "4", "5", "6"] extRange = ["", "sharp"] notes = [ "%s%s%s" % (name, ext, oct) for oct in octaveRange for name in noteRange for ext in extRange ] for note in notes: params['tag'] = "(%s flute single-note pabloproject)" % (note, ) sd.downloadFreesound(**params)
def download(testMode=False): params = { 'tag' : '', 'duration' : (0,10), 'API_Key' : conf.myAPI_Key, 'outputDir' : conf.myOutputDir, 'topNResults' : 3, 'featureExt' : '.json', 'preview' : False, 'emptyDir' : False, 'pack' : '', 'freeSoundId' : '', 'noDownload': False} params['noDownload'] = testMode if testMode: params['topNResults'] = 1 params['folderName'] = 'mridangam' nameRange = ["c", "d", "e", "f", "g", "a", "b"] extRange = ["", "sh"] soundRange = ["ta", "tha", "tham", "thi", "thom", "cha", "dhin", "dheem", "bheem", "num"] notes = ["%s-%s%s" % (sound, name, ext) for sound in soundRange for name in nameRange for ext in extRange] for note in notes: params['tag'] = "(mridangam-%s mridangam-stroke-dataset)" % (note, ) sd.downloadFreesound(**params) time.sleep(1)
def download(): trumpetParams = { 'tag': '', 'duration': (0, 10), 'API_Key': conf.myAPI_Key, 'outputDir': conf.myOutputDir, 'topNResults': 100, 'featureExt': '.json', 'preview': True, 'emptyDir': False, 'folderName': 'trumpet', 'pack': '', 'freeSoundId': '', 'noDownload': False } trumpetParams['preview'] = False #trumpetParams['noDownload'] = True notes = [ "%s%s%s" % (name, ext, oct) for name in ["C", "D", "E", "F", "G", "A", "B"] for ext in ["", "sharp"] for oct in ["4", "5"] ] for note in notes: trumpetParams['tag'] = "(%s trumpet single-note pabloproject)" % ( note, ) sd.downloadFreesound(**trumpetParams)
def download(testMode=False): params = { 'tag' : '', 'duration' : (0,10), 'API_Key' : conf.myAPI_Key, 'outputDir' : conf.myOutputDir, 'topNResults' : 3, 'featureExt' : '.json', 'preview' : False, 'emptyDir' : False, 'folderName' : 'flute', 'pack' : '', 'freeSoundId' : '', 'noDownload': False} params['noDownload'] = testMode if testMode: params['topNResults'] = 1 noteRange = ["C", "D", "E", "F", "G", "A", "B"] octaveRange = ["3", "4", "5", "6"] extRange = ["", "sharp"] notes = ["%s%s%s" % (name, ext, oct) for oct in octaveRange for name in noteRange for ext in extRange] for note in notes: params['tag'] = "(%s flute single-note pabloproject)" % (note, ) sd.downloadFreesound(**params)
def download(): params = { "tag": "", "duration": (0, 10), "API_Key": conf.myAPI_Key, "outputDir": conf.myOutputDir, "topNResults": 100, "featureExt": ".json", "preview": True, "emptyDir": False, "folderName": "clarinet", "pack": "", "freeSoundId": "", "noDownload": False, } params["preview"] = False # params['noDownload'] = True # ["3", "4", "5"] params["topNResults"] = 3 notes = [ "%s%s%s" % (name, ext, oct) for name in ["C", "D", "E", "F", "G", "A", "B"] for ext in ["", "sharp"] for oct in ["3", "4", "5", "6"] ] for note in notes: params["tag"] = "(%s clarinet single-note pabloproject)" % (note,) sd.downloadFreesound(**params)
def download(testMode=False): params = { 'tag': '', 'duration': (0, 10), 'API_Key': conf.myAPI_Key, 'outputDir': conf.myOutputDir, 'topNResults': 50, 'featureExt': '.json', 'preview': False, 'emptyDir': False, 'pack': '', 'freeSoundId': '', 'noDownload': False } params['noDownload'] = testMode if testMode: params['topNResults'] = 1 params['folderName'] = 'daluo' params['tag'] = 'daluo-instrument' sd.downloadFreesound(**params)
def downloadGuitar(testMode=False): params = { 'tag' : '', 'duration' : (0,10), 'API_Key' : conf.myAPI_Key, 'outputDir' : '../joeDown_Norm', 'topNResults' : 50, 'featureExt' : '.json', 'preview' : True, 'emptyDir' : False, 'folderName' : 'guitar', 'pack' : '', 'freeSoundId' : '', 'normalizedDescriptors': True, } params['preview'] = False params['queryText'] = 'guitar' params['pack'] = 'ClassicalGuitar-multisampled' sd.downloadFreesound(**params) params['pack'] = 'acoustic_guitar' sd.downloadFreesound(**params)
def downloadBassoon(testMode=False): params = { 'tag' : '', 'duration' : (0,10), 'API_Key' : conf.myAPI_Key, 'outputDir' : '../joeDown_Norm', 'topNResults' : 100, 'featureExt' : '.json', 'preview' : False, 'emptyDir' : False, 'folderName' : 'bassoon', 'pack' : '', 'freeSoundId' : '', 'normalizedDescriptors': True, } params['noDownload'] = testMode params['queryText'] = 'bassoon' params['pack'] = 'Bassoon: Fortissimo and Pianissimo samples G3' sd.downloadFreesound(**params) params['pack'] = 'Bassoon: Staccato Non Vibrato C2-C4' sd.downloadFreesound(**params) params['pack'] = 'Bassoon: Tenuto Non Vibrato C2-C4' sd.downloadFreesound(**params) params['pack'] = 'Bassoon: Tenuto Vibrato C2-C4' sd.downloadFreesound(**params)
def download(testMode=False): params = { 'tag' : '', 'duration' : (0,10), 'API_Key' : conf.myAPI_Key, 'outputDir' : conf.myOutputDir, 'topNResults' : 100, 'featureExt' : '.json', 'preview' : False, 'emptyDir' : False, 'folderName' : 'bassoon', 'pack' : '', 'freeSoundId' : ''} params['noDownload'] = testMode params['queryText'] = 'bassoon' params['pack'] = 'Bassoon: Fortissimo and Pianissimo samples G3' sd.downloadFreesound(**params) params['pack'] = 'Bassoon: Staccato Non Vibrato C2-C4' sd.downloadFreesound(**params) params['pack'] = 'Bassoon: Tenuto Non Vibrato C2-C4' sd.downloadFreesound(**params) params['pack'] = 'Bassoon: Tenuto Vibrato C2-C4' sd.downloadFreesound(**params)
def download(): violinParams = { 'tag': '', 'duration': (0, 10), 'API_Key': conf.myAPI_Key, 'outputDir': conf.myOutputDir, 'topNResults': 100, 'featureExt': '.json', 'preview': True, 'emptyDir': False, 'folderName': 'violin', 'pack': '', 'freeSoundId': '' } violinParams['preview'] = False violinParams['queryText'] = 'violin' violinParams['pack'] = 'Violin: Single notes Tenuto Non Vibrato G4-G5' sd.downloadFreesound(**violinParams) violinParams['pack'] = 'Violin: Single notes Tenuto Vibrato G4-G5' sd.downloadFreesound(**violinParams) violinParams['pack'] = '' violinParams['tag'] = '(violin AND single-note AND mf)' sd.downloadFreesound(**violinParams)
def download(): violinParams = { 'tag' : '', 'duration' : (0,10), 'API_Key' : conf.myAPI_Key, 'outputDir' : conf.myOutputDir, 'topNResults' : 100, 'featureExt' : '.json', 'preview' : True, 'emptyDir' : False, 'folderName' : 'violin', 'pack' : '', 'freeSoundId' : ''} violinParams['preview'] = False violinParams['queryText'] = 'violin' violinParams['pack'] = 'Violin: Single notes Tenuto Non Vibrato G4-G5' sd.downloadFreesound(**violinParams) violinParams['pack'] = 'Violin: Single notes Tenuto Vibrato G4-G5' sd.downloadFreesound(**violinParams) violinParams['pack'] = '' violinParams['tag'] = '(violin AND single-note AND mf)' sd.downloadFreesound(**violinParams)
def download(testMode=False): params = { 'tag': '', 'duration': (0, 10), 'API_Key': conf.myAPI_Key, 'outputDir': conf.myOutputDir, 'topNResults': 3, 'featureExt': '.json', 'preview': False, 'emptyDir': False, 'pack': '', 'freeSoundId': '', 'noDownload': False } params['noDownload'] = testMode if testMode: params['topNResults'] = 1 params['folderName'] = 'mridangam' nameRange = ["c", "d", "e", "f", "g", "a", "b"] extRange = ["", "sh"] soundRange = [ "ta", "tha", "tham", "thi", "thom", "cha", "dhin", "dheem", "bheem", "num" ] notes = [ "%s-%s%s" % (sound, name, ext) for sound in soundRange for name in nameRange for ext in extRange ] for note in notes: params['tag'] = "(mridangam-%s mridangam-stroke-dataset)" % (note, ) sd.downloadFreesound(**params) time.sleep(1)
def download(): trumpetParams = { 'tag' : '', 'duration' : (0,10), 'API_Key' : conf.myAPI_Key, 'outputDir' : conf.myOutputDir, 'topNResults' : 100, 'featureExt' : '.json', 'preview' : True, 'emptyDir' : False, 'folderName' : 'trumpet', 'pack' : '', 'freeSoundId' : '', 'noDownload': False} trumpetParams['preview'] = False #trumpetParams['noDownload'] = True notes = ["%s%s%s" % (name, ext, oct) for name in ["C", "D", "E", "F", "G", "A", "B"] for ext in ["", "sharp"] for oct in ["4", "5"]] for note in notes: trumpetParams['tag'] = "(%s trumpet single-note pabloproject)" % (note, ) sd.downloadFreesound(**trumpetParams)
def download(): params = { 'tag' : '', 'duration' : (0,10), 'API_Key' : conf.myAPI_Key, 'outputDir' : conf.myOutputDir, 'topNResults' : 50, 'featureExt' : '.json', 'preview' : True, 'emptyDir' : False, 'folderName' : 'guitar', 'pack' : '', 'freeSoundId' : ''} params['preview'] = False params['queryText'] = 'guitar' params['pack'] = 'ClassicalGuitar-multisampled' sd.downloadFreesound(**params) params['pack'] = 'acoustic_guitar' sd.downloadFreesound(**params)
def download(testMode=False): params = { 'tag' : '', 'duration' : (0,10), 'API_Key' : conf.myAPI_Key, 'outputDir' : conf.myOutputDir, 'topNResults' : 10, 'featureExt' : '.json', 'preview' : False, 'emptyDir' : False, 'folderName' : 'snare_drum', 'pack' : '', 'freeSoundId' : ''} params['noDownload'] = testMode if testMode: params['topNResults'] = 1 params['tag'] = '(snare drum 1-shot)' packs = ["Snaredrum-13x03inchPearl-MediumLowPitch-multisampled", "Snaredrum-13x03inchPearl-LowPitch-multisampled", "Snaredrum-14x08inchTama-HighPitch-multisampled", "Snaredrum-14x08inchTama-MediumHighPitch-multisampled", "Snaredrum-14x08inchTama-MediumPitch-multisampled", "Snaredrum-14x08inchTama-MediumLowPitch-multisampled", "Snaredrum-14x08inchTama-VeryLowPitch-multisampled", "Snaredrum-13x03inchPearl-VeryHighPitch-multisampled", "Snaredrum-13x03inchPearl-HighPitch-multisampled", "Snaredrum-13x03inchPearl-MediumHighPitch-multisampled"] for pack in packs: params['pack'] = pack sd.downloadFreesound(**params) #download(testMode=True)
import soundDownload as sd import myFreesoundConfig as conf """ params = { 'tag' : '', 'duration' : (0,10), 'API_Key' : conf.myAPI_Key, 'outputDir' : '../joeTestOut', 'topNResults' : 1, 'featureExt' : '.json', 'preview' : False, 'emptyDir' : True, 'folderName' : '_test', 'pack' : '', 'freeSoundId' : ''} params['noDownload'] = testMode if testMode: params['topNResults'] = 1 #params['queryText'] = 'guitar' #params['pack'] = 'ClassicalGuitar-multisampled' params['freeSoundId'] = '228622' sd.downloadFreesound(**params) """
import soundDownload as sd import myFreesoundKey as secret myOutputDir = 'joeDown' params = { 'queryText': 'guitar', 'tag': '', 'duration': (0, 10), 'API_Key': secret.myAPI_Key, 'outputDir': myOutputDir, 'topNResults': 50, 'featureExt': '.json', 'preview': False, 'emptyDir': True, 'omitQueryText': False, 'pack': '', 'freeSoundId': '' } guitarParams = params guitarParams['queryText'] = 'guitar' guitarParams['pack'] = 'ClassicalGuitar-multisampled' sd.downloadFreesound(**guitarParams) guitarParams['emptyDir'] = False guitarParams['pack'] = 'acoustic_guitar' sd.downloadFreesound(**guitarParams)
import soundDownload as sd import myFreesoundKey as secret myOutputDir = "joeDown" params = { "queryText": "guitar", "tag": "", "duration": (0, 10), "API_Key": secret.myAPI_Key, "outputDir": myOutputDir, "topNResults": 50, "featureExt": ".json", "preview": False, "emptyDir": True, "omitQueryText": False, "pack": "", "freeSoundId": "", } guitarParams = params guitarParams["queryText"] = "guitar" guitarParams["pack"] = "ClassicalGuitar-multisampled" sd.downloadFreesound(**guitarParams) guitarParams["emptyDir"] = False guitarParams["pack"] = "acoustic_guitar" sd.downloadFreesound(**guitarParams)