MCPcopy Create free account

hub / github.com/cgzirim/seek-tune / functions

Functions184 in github.com/cgzirim/seek-tune

↓ 27 callersFunctionenosys
()
client/public/wasm_exec.js:8
↓ 20 callersMethodClose
()
server/db/client.go:10
↓ 13 callersFunctiondownloadStatus
(statusType, message string)
server/socketHandlers.go:22
↓ 4 callersMethodbuildTrack
()
server/spotify/spotify.go:401
↓ 4 callersFunctioncleanUp
()
client/src/App.js:270
↓ 4 callersFunctionrequest
* requests to playlist/track endpoints */
server/spotify/spotify.go:143
↓ 3 callersFunctionExtractPeaks
ExtractPeaks analyzes a spectrogram and extracts significant peaks in the frequency domain over time.
server/shazam/spectrogram.go:129
↓ 3 callersFunctionFingerprint
Fingerprint generates fingerprints from a list of peaks and stores them in an array. Each fingerprint consists of an address and a couple. The address
server/shazam/fingerprint.go:19
↓ 3 callersMethodGetSong
GetSong retrieves a song by filter key
server/db/sqlite.go:171
↓ 3 callersMethodGetSong
(filterKey string, value interface{})
server/db/mongo.go:142
↓ 3 callersFunctionSpectrogram
(sample []float64, sampleRate int)
server/shazam/spectrogram.go:18
↓ 3 callersMethod_resume
()
client/public/wasm_exec.js:541
↓ 3 callersFunctiondlTrack
(tracks []Track, path string)
server/spotify/downloader.go:79
↓ 2 callersMethodDeleteCollection
(collectionName string)
server/db/client.go:20
↓ 2 callersMethodDeleteSongByID
(songID uint32)
server/db/client.go:19
↓ 2 callersFunctionEncodeParam
(s string)
server/spotify/utils.go:15
↓ 2 callersMethodGetSongByKey
(key string)
server/db/client.go:18
↓ 2 callersFunctionGetYoutubeId
GetYoutubeId takes the query as string and returns the search results video ID's
server/spotify/youtube.go:85
↓ 2 callersFunctionYtIDExists
(ytID string)
server/spotify/utils.go:57
↓ 2 callersFunctionclose
(fd, callback)
client/public/wasm_exec.js:37
↓ 2 callersFunctionjsonList
* gets JSON respond from playlist/album endpoints */
server/spotify/spotify.go:378
↓ 2 callersFunctionproccessItems
* constructs each Spotify track from JSON body (album/playlist) and returns a slice of tracks */
server/spotify/spotify.go:418
↓ 2 callersFunctionsaveSong
(filePath string, force bool)
server/cmdHandlers.go:333
↓ 2 callersMethodsetInt32
(addr, v)
client/public/wasm_exec.js:116
↓ 1 callersFunctionAlbumInfo
(url string)
server/spotify/spotify.go:291
↓ 1 callersFunctionDownsample
Downsample downsamples the input audio from originalSampleRate to targetSampleRate
server/shazam/spectrogram.go:91
↓ 1 callersFunctionFFT
FFT computes the Fast Fourier Transform (FFT) of the input data, converting the signal from the time domain to the frequency domain. For better unders
server/shazam/fft.go:10
↓ 1 callersFunctionFindMatchesFGP
FindMatchesFGP uses the sample fingerprint to find matching songs in the database.
server/shazam/shazam.go:47
↓ 1 callersMethodGetCouples
(addresses []uint32)
server/db/client.go:12
↓ 1 callersMethodGetSongByID
(songID uint32)
server/db/client.go:16
↓ 1 callersMethodGetSongByYTID
(ytID string)
server/db/client.go:17
↓ 1 callersFunctionLowPassFilter
LowPassFilter is a first-order low-pass filter that attenuates high frequencies above the cutoffFrequency. It uses the transfer function H(s) = 1 / (1
server/shazam/spectrogram.go:70
↓ 1 callersFunctionNewMongoClient
(uri string)
server/db/mongo.go:21
↓ 1 callersFunctionNewSQLiteClient
(dataSourceName string)
server/db/sqlite.go:17
↓ 1 callersFunctionPlaylistInfo
(url string)
server/spotify/spotify.go:226
↓ 1 callersFunctionProcessAndSaveSong
(songFilePath, songTitle, songArtist, ytID string)
server/spotify/downloader.go:220
↓ 1 callersFunctionReadWavInfo
ReadWavInfo reads a 16-bit PCM WAV file and returns its metadata and audio samples. Supports mono and stereo files. Note that it only supports 16-bit
server/wav/wav.go:108
↓ 1 callersFunctionReformatWAV
ReformatWAV converts a given WAV file to the specified number of channels, either mono (1 channel) or stereo (2 channels).
server/wav/convert.go:69
↓ 1 callersMethodRegisterSong
(songTitle, songArtist, ytID string)
server/db/client.go:14
↓ 1 callersFunctionSongKeyExists
(key string)
server/spotify/utils.go:42
↓ 1 callersMethodStoreFingerprints
(fingerprints map[uint32]models.Couple)
server/db/client.go:11
↓ 1 callersMethodTotalSongs
()
server/db/client.go:13
↓ 1 callersFunctionTrackInfo
(url string)
server/spotify/spotify.go:180
↓ 1 callersFunctionWavBytesToSamples
WavBytesToFloat64 converts a slice of bytes from a .wav file to a slice of float64 samples
server/wav/wav.go:178
↓ 1 callersFunctionWriteWavFile
(filename string, data []byte, sampleRate int, channels int, bitsPerSample int)
server/wav/wav.go:74
↓ 1 callersFunctionaccessToken
()
server/spotify/spotify.go:95
↓ 1 callersFunctionaddTags
(file string, track Track)
server/spotify/downloader.go:183
↓ 1 callersFunctionanalyzeRelativeTiming
analyzeRelativeTiming calculates a score for each song based on the consistency of time offsets between the sample and database.
server/shazam/shazam.go:146
↓ 1 callersFunctionconvertStringDurationToSeconds
(durationStr string)
server/spotify/youtube.go:65
↓ 1 callersFunctioncorrectFilename
* fixes some invalid file names (windows is the capricious one) */
server/spotify/utils.go:73
↓ 1 callersFunctioncreateAddress
createAddress generates a unique address for a pair of anchor and target points. The address is a 32-bit integer where certain bits represent the freq
server/shazam/fingerprint.go:43
↓ 1 callersFunctioncreateTables
createTables creates the required tables if they don't exist
server/db/sqlite.go:42
↓ 1 callersFunctiondownload
(spotifyURL string)
server/cmdHandlers.go:86
↓ 1 callersFunctiondownloadYTaudio
downloadYTaudio downloads audio from a YouTube video using yt-dlp command line tool.
server/spotify/youtube.go:225
↓ 1 callersFunctionerase
(songsDir string, dbOnly bool, all bool)
server/cmdHandlers.go:202
↓ 1 callersFunctionfind
(filePath string)
server/cmdHandlers.go:37
↓ 1 callersFunctionfmtErr
fmtErr returns a slog.Value with keys `msg` and `trace`. If the error does not implement interface { StackTrace() errors.StackTrace }, the `trace` key
server/utils/logger.go:60
↓ 1 callersFunctiongetContent
(data []byte, index int)
server/spotify/youtube.go:112
↓ 1 callersFunctiongetID
(url string)
server/spotify/spotify.go:169
↓ 1 callersFunctiongetYTID
(trackCopy *Track)
server/spotify/downloader.go:253
↓ 1 callersFunctionloadCachedToken
()
server/spotify/spotify.go:80
↓ 1 callersFunctionloadCredentials
()
server/spotify/spotify.go:53
↓ 1 callersFunctionmarshalStack
marshalStack extracts stack frames from the error
server/utils/logger.go:30
↓ 1 callersFunctiononReady
(event, videoId)
client/src/components/CarouselSliders.js:24
↓ 1 callersMethodpagination
()
server/spotify/spotify.go:413
↓ 1 callersFunctionprocessFilesConCurrently
(filePaths []string, force bool)
server/cmdHandlers.go:289
↓ 1 callersFunctionrecursiveFFT
(complexArray []complex128)
server/shazam/fft.go:21
↓ 1 callersFunctionreportWebVitals
client/src/reportWebVitals.js:1
↓ 1 callersMethodrun
(instance)
client/public/wasm_exec.js:465
↓ 1 callersFunctionsave
(path string, force bool)
server/cmdHandlers.go:255
↓ 1 callersFunctionsaveToken
(token string, expiresIn int)
server/spotify/spotify.go:68
↓ 1 callersFunctionserve
(protocol, port string)
server/cmdHandlers.go:118
↓ 1 callersFunctionserveHTTP
(socketServer *socketio.Server, serveHTTPS bool, port string)
server/cmdHandlers.go:167
↓ 1 callersFunctionspotifyURLisValid
(url)
client/src/components/Form.js:24
↓ 1 callersFunctionstopListening
()
client/src/App.js:280
↓ 1 callersFunctionusePrevious
(value)
client/src/components/AnimatedNumber.js:6
↓ 1 callersFunctionwriteWavHeader
(f *os.File, data []byte, sampleRate int, channels int, bitsPerSample int)
server/wav/wav.go:40
↓ 1 callersFunctionytSearch
(searchTerm string, limit int)
server/spotify/youtube.go:118
MethodClose
()
server/db/sqlite.go:75
MethodClose
()
server/db/mongo.go:30
FunctionConvertToWAV
ConvertToWAV converts an input audio file to WAV format with specified channels.
server/wav/convert.go:14
FunctionCreateFolder
(folderPath string)
server/utils/helpers.go:19
MethodDeleteCollection
DeleteCollection deletes a collection (table) from the database
server/db/sqlite.go:215
MethodDeleteCollection
(collectionName string)
server/db/mongo.go:194
FunctionDeleteFile
(filePath string)
server/utils/helpers.go:10
MethodDeleteSongByID
DeleteSongByID deletes a song by ID
server/db/sqlite.go:206
MethodDeleteSongByID
(songID uint32)
server/db/mongo.go:181
FunctionDlAlbum
(url, savePath string)
server/spotify/downloader.go:62
FunctionDlPlaylist
(url, savePath string)
server/spotify/downloader.go:45
FunctionDlSingleTrack
(url, savePath string)
server/spotify/downloader.go:26
FunctionExtendMap
(dest, src map[K]V)
server/utils/utils.go:31
FunctionFindMatches
FindMatches analyzes the audio sample to find matching songs in the database.
server/shazam/shazam.go:24
FunctionFingerprintAudio
(songFilePath string, songID uint32)
server/shazam/fingerprint.go:60
FunctionFloatsToBytes
(data []float64, bitsPerSample int)
server/utils/helpers.go:57
FunctionGenerateSongKey
(songTitle, songArtist string)
server/utils/utils.go:16
FunctionGenerateUniqueID
()
server/utils/utils.go:9
MethodGetCouples
(addresses []uint32)
server/db/sqlite.go:105
MethodGetCouples
(addresses []uint32)
server/db/mongo.go:61
FunctionGetEnv
(key string, fallback ...string)
server/utils/utils.go:20
FunctionGetFileSize
(file string)
server/spotify/utils.go:32
next →1–100 of 184, ranked by callers