Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cgzirim/seek-tune
/ functions
Functions
184 in github.com/cgzirim/seek-tune
⨍
Functions
184
◇
Types & classes
21
↓ 27 callers
Function
enosys
()
client/public/wasm_exec.js:8
↓ 20 callers
Method
Close
()
server/db/client.go:10
↓ 13 callers
Function
downloadStatus
(statusType, message string)
server/socketHandlers.go:22
↓ 4 callers
Method
buildTrack
()
server/spotify/spotify.go:401
↓ 4 callers
Function
cleanUp
()
client/src/App.js:270
↓ 4 callers
Function
request
* requests to playlist/track endpoints */
server/spotify/spotify.go:143
↓ 3 callers
Function
ExtractPeaks
ExtractPeaks analyzes a spectrogram and extracts significant peaks in the frequency domain over time.
server/shazam/spectrogram.go:129
↓ 3 callers
Function
Fingerprint
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 callers
Method
GetSong
GetSong retrieves a song by filter key
server/db/sqlite.go:171
↓ 3 callers
Method
GetSong
(filterKey string, value interface{})
server/db/mongo.go:142
↓ 3 callers
Function
Spectrogram
(sample []float64, sampleRate int)
server/shazam/spectrogram.go:18
↓ 3 callers
Method
_resume
()
client/public/wasm_exec.js:541
↓ 3 callers
Function
dlTrack
(tracks []Track, path string)
server/spotify/downloader.go:79
↓ 2 callers
Method
DeleteCollection
(collectionName string)
server/db/client.go:20
↓ 2 callers
Method
DeleteSongByID
(songID uint32)
server/db/client.go:19
↓ 2 callers
Function
EncodeParam
(s string)
server/spotify/utils.go:15
↓ 2 callers
Method
GetSongByKey
(key string)
server/db/client.go:18
↓ 2 callers
Function
GetYoutubeId
GetYoutubeId takes the query as string and returns the search results video ID's
server/spotify/youtube.go:85
↓ 2 callers
Function
YtIDExists
(ytID string)
server/spotify/utils.go:57
↓ 2 callers
Function
close
(fd, callback)
client/public/wasm_exec.js:37
↓ 2 callers
Function
jsonList
* gets JSON respond from playlist/album endpoints */
server/spotify/spotify.go:378
↓ 2 callers
Function
proccessItems
* constructs each Spotify track from JSON body (album/playlist) and returns a slice of tracks */
server/spotify/spotify.go:418
↓ 2 callers
Function
saveSong
(filePath string, force bool)
server/cmdHandlers.go:333
↓ 2 callers
Method
setInt32
(addr, v)
client/public/wasm_exec.js:116
↓ 1 callers
Function
AlbumInfo
(url string)
server/spotify/spotify.go:291
↓ 1 callers
Function
Downsample
Downsample downsamples the input audio from originalSampleRate to targetSampleRate
server/shazam/spectrogram.go:91
↓ 1 callers
Function
FFT
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 callers
Function
FindMatchesFGP
FindMatchesFGP uses the sample fingerprint to find matching songs in the database.
server/shazam/shazam.go:47
↓ 1 callers
Method
GetCouples
(addresses []uint32)
server/db/client.go:12
↓ 1 callers
Method
GetSongByID
(songID uint32)
server/db/client.go:16
↓ 1 callers
Method
GetSongByYTID
(ytID string)
server/db/client.go:17
↓ 1 callers
Function
LowPassFilter
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 callers
Function
NewMongoClient
(uri string)
server/db/mongo.go:21
↓ 1 callers
Function
NewSQLiteClient
(dataSourceName string)
server/db/sqlite.go:17
↓ 1 callers
Function
PlaylistInfo
(url string)
server/spotify/spotify.go:226
↓ 1 callers
Function
ProcessAndSaveSong
(songFilePath, songTitle, songArtist, ytID string)
server/spotify/downloader.go:220
↓ 1 callers
Function
ReadWavInfo
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 callers
Function
ReformatWAV
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 callers
Method
RegisterSong
(songTitle, songArtist, ytID string)
server/db/client.go:14
↓ 1 callers
Function
SongKeyExists
(key string)
server/spotify/utils.go:42
↓ 1 callers
Method
StoreFingerprints
(fingerprints map[uint32]models.Couple)
server/db/client.go:11
↓ 1 callers
Method
TotalSongs
()
server/db/client.go:13
↓ 1 callers
Function
TrackInfo
(url string)
server/spotify/spotify.go:180
↓ 1 callers
Function
WavBytesToSamples
WavBytesToFloat64 converts a slice of bytes from a .wav file to a slice of float64 samples
server/wav/wav.go:178
↓ 1 callers
Function
WriteWavFile
(filename string, data []byte, sampleRate int, channels int, bitsPerSample int)
server/wav/wav.go:74
↓ 1 callers
Function
accessToken
()
server/spotify/spotify.go:95
↓ 1 callers
Function
addTags
(file string, track Track)
server/spotify/downloader.go:183
↓ 1 callers
Function
analyzeRelativeTiming
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 callers
Function
convertStringDurationToSeconds
(durationStr string)
server/spotify/youtube.go:65
↓ 1 callers
Function
correctFilename
* fixes some invalid file names (windows is the capricious one) */
server/spotify/utils.go:73
↓ 1 callers
Function
createAddress
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 callers
Function
createTables
createTables creates the required tables if they don't exist
server/db/sqlite.go:42
↓ 1 callers
Function
download
(spotifyURL string)
server/cmdHandlers.go:86
↓ 1 callers
Function
downloadYTaudio
downloadYTaudio downloads audio from a YouTube video using yt-dlp command line tool.
server/spotify/youtube.go:225
↓ 1 callers
Function
erase
(songsDir string, dbOnly bool, all bool)
server/cmdHandlers.go:202
↓ 1 callers
Function
find
(filePath string)
server/cmdHandlers.go:37
↓ 1 callers
Function
fmtErr
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 callers
Function
getContent
(data []byte, index int)
server/spotify/youtube.go:112
↓ 1 callers
Function
getID
(url string)
server/spotify/spotify.go:169
↓ 1 callers
Function
getYTID
(trackCopy *Track)
server/spotify/downloader.go:253
↓ 1 callers
Function
loadCachedToken
()
server/spotify/spotify.go:80
↓ 1 callers
Function
loadCredentials
()
server/spotify/spotify.go:53
↓ 1 callers
Function
marshalStack
marshalStack extracts stack frames from the error
server/utils/logger.go:30
↓ 1 callers
Function
onReady
(event, videoId)
client/src/components/CarouselSliders.js:24
↓ 1 callers
Method
pagination
()
server/spotify/spotify.go:413
↓ 1 callers
Function
processFilesConCurrently
(filePaths []string, force bool)
server/cmdHandlers.go:289
↓ 1 callers
Function
recursiveFFT
(complexArray []complex128)
server/shazam/fft.go:21
↓ 1 callers
Function
reportWebVitals
client/src/reportWebVitals.js:1
↓ 1 callers
Method
run
(instance)
client/public/wasm_exec.js:465
↓ 1 callers
Function
save
(path string, force bool)
server/cmdHandlers.go:255
↓ 1 callers
Function
saveToken
(token string, expiresIn int)
server/spotify/spotify.go:68
↓ 1 callers
Function
serve
(protocol, port string)
server/cmdHandlers.go:118
↓ 1 callers
Function
serveHTTP
(socketServer *socketio.Server, serveHTTPS bool, port string)
server/cmdHandlers.go:167
↓ 1 callers
Function
spotifyURLisValid
(url)
client/src/components/Form.js:24
↓ 1 callers
Function
stopListening
()
client/src/App.js:280
↓ 1 callers
Function
usePrevious
(value)
client/src/components/AnimatedNumber.js:6
↓ 1 callers
Function
writeWavHeader
(f *os.File, data []byte, sampleRate int, channels int, bitsPerSample int)
server/wav/wav.go:40
↓ 1 callers
Function
ytSearch
(searchTerm string, limit int)
server/spotify/youtube.go:118
Method
Close
()
server/db/sqlite.go:75
Method
Close
()
server/db/mongo.go:30
Function
ConvertToWAV
ConvertToWAV converts an input audio file to WAV format with specified channels.
server/wav/convert.go:14
Function
CreateFolder
(folderPath string)
server/utils/helpers.go:19
Method
DeleteCollection
DeleteCollection deletes a collection (table) from the database
server/db/sqlite.go:215
Method
DeleteCollection
(collectionName string)
server/db/mongo.go:194
Function
DeleteFile
(filePath string)
server/utils/helpers.go:10
Method
DeleteSongByID
DeleteSongByID deletes a song by ID
server/db/sqlite.go:206
Method
DeleteSongByID
(songID uint32)
server/db/mongo.go:181
Function
DlAlbum
(url, savePath string)
server/spotify/downloader.go:62
Function
DlPlaylist
(url, savePath string)
server/spotify/downloader.go:45
Function
DlSingleTrack
(url, savePath string)
server/spotify/downloader.go:26
Function
ExtendMap
(dest, src map[K]V)
server/utils/utils.go:31
Function
FindMatches
FindMatches analyzes the audio sample to find matching songs in the database.
server/shazam/shazam.go:24
Function
FingerprintAudio
(songFilePath string, songID uint32)
server/shazam/fingerprint.go:60
Function
FloatsToBytes
(data []float64, bitsPerSample int)
server/utils/helpers.go:57
Function
GenerateSongKey
(songTitle, songArtist string)
server/utils/utils.go:16
Function
GenerateUniqueID
()
server/utils/utils.go:9
Method
GetCouples
(addresses []uint32)
server/db/sqlite.go:105
Method
GetCouples
(addresses []uint32)
server/db/mongo.go:61
Function
GetEnv
(key string, fallback ...string)
server/utils/utils.go:20
Function
GetFileSize
(file string)
server/spotify/utils.go:32
next →
1–100 of 184, ranked by callers